Hello Mate,
I'm currently integrate the Auth Api on my application and i have a
question...
I do understand that the "Registration_key" is useful for
functionality like "Verify_email, " BUT I don't understand the purpose
of having "registration_key" in the sql Select query of the login ???
Like why we have to check for registration_key in the login function
of the Tools.py :
#### login()#####
....
users = self.db(user[username] == form.vars[username])\
(user[password] == form.vars.get
(password,''))\
(user.registration_key == '').select()
...
###############
The reason why I'm asking is because when I set up an SMTP
configuration using Mail() API; when i register an user through my
application then the registration_key is created in the database
"Auth_user" table BUT I can't login the newly created user because the
registration_key is not null...
BUT when I don't set up a Mail() API on my application the
registration_key is empty and the login is successful...
I'm currently using web2py version: 1.61.4
Can anyone please drop me a line if you have any idea about my
problem... Thank You!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---