yes, sorry :)
db.define_table('users',
Field('username', 'string', unique=True, label="Username [*]"),
Field('password', 'password', requires=CRYPT(), readable=False,
label="Password [*]"),
Field('registration_key',length=128, writable=False, readable=False),
Field('first_name', default=None, length=128, writable=False,
readable=False),
Field('last_name', default=None, length=128, writable=False,
readable=False),
Field('email', length=128, unique=True, label="Email [*]"),
Field('age', 'integer', default=18),
Field('name', length=32, default="Anonymous"),
Field('fb_id', 'integer', default=0, writable=False, readable=False),
and so on.
When I find some time, I have to make a proper slice.
On Apr 19, 5:56 pm, mdipierro <[email protected]> wrote:
> I do not see this using db.auth_user at all. Did you rename it
> db.users?
>
> On Apr 19, 9:50 am, Jon Romero <[email protected]> wrote:
>
>
>
> > sadly no :(
>
> > Take a look at it here:http://codepad.org/tadGosTd
>
> > I am using my prototype activerecord for some database calls (that
> > should explain the find_by_id).
>
> > On Apr 19, 5:31 pm, mdipierro <[email protected]> wrote:
>
> > > wow? Is this implemented as a gluon/contrib/login_method?
>
> > > On Apr 19, 9:26 am, Jon Romero <[email protected]> wrote:
>
> > > > actually it is :) I just haven't got the time to upgrade the code :\
>
> > > > You can see that is FULLY integrated on this site:http://beyourstar.gr
>
> > > > After facebook login, you get an auth.user :D
>
> > > > On Apr 19, 5:21 pm, mdipierro <[email protected]> wrote:
>
> > > > > fbconnect has not been integrated with Auth. It would be easy to do
> > > > > but has not been done yet.
>
> > > > > On Apr 19, 2:42 am, Rohan <[email protected]> wrote:
>
> > > > > > hi Jon,
>
> > > > > > Can you please share updates on integration between fbconnect and
> > > > > > auth.user()?
>
> > > > > > Thanks
>
> > > > > > On Feb 2, 4:34 pm, Jon Romero <[email protected]> wrote:
>
> > > > > > > But then how auth.user is updated?
>
> > > > > > > >All auth does on successful login is:
> > > > > > > >from gluon.storage import Storage
> > > > > > > >session.auth=Storage()
> > > > > > > >session.auth.user = db(db.auth_user.id==logged_in_user_id).select
> > > > > > > ().first()
> > > > > > > >session.auth.user_id = session.auth.user.id
> > > > > > > >session.auth.last_visit = request.now
> > > > > > > >set session.auth=None on logout.
>
> > > > > > > > >>> So, how can Icreatea new session programmatically (like the
> > > > > > > > >>> login
> > > > > > > > >>> page does)?
>
> > > > > > > > >> --
> > > > > > > > >> Alejandro Fanjul Fdez.
> > > > > > > > >> [email protected]
>
> > > > > > > > --
> > > > > > > > Alejandro Fanjul Fdez.
> > > > > > > > [email protected]
>
> > > > > > --
> > > > > > Subscription
> > > > > > settings:http://groups.google.com/group/web2py/subscribe?hl=en