Thanks for the note... I already noticed that work around... This is not how my application is intend to work because what i meant and want is... The User register successfully AND there is an email NOtification ( Welcome msg) that is sent NOT an email verification...I don't want email verification in the registration process... So basically i guess the Auth API is not taking care of Email Notification (Welcome Email) in registration process ???... I'm currently using: auth.settings.mailer = mail for sending email Notification but Can't login... SO basically it is a Login WITH simple Email Notification (Welcome email).. is there a way of doing that with the current Auth Api ?
Thanks for your help... Yannick P. On May 8, 9:24 am, mdipierro <[email protected]> wrote: > If you want to allow login without email verification comment the line > > #auth.settings.mailer=mail > > Massimo > > On May 8, 8:13 am, Yannick <[email protected]> wrote: > > > Hi Massimo, Thanks for the reply... > > The problem is I can't log any user in because the code for the login > > check if the registration_key is null... But since I set up a mail() > > API the registration_key is NOT empty therefore the user fail to > > login... > > > Is there any work around this ? Am I missing something ? How can I > > login a new user when Mail() set up ? > > > Thanks for your help, > > > Yannick P. > > > On May 8, 12:06 am, mdipierro <[email protected]> wrote: > > > > the policy I have in mind is > > > > if registration_key=='' : user can login > > > if registration_key=='blocked' : user account is blocked > > > if registration_key=='pending' : user account requires approval > > > if registration_key==<uuid> : user account requires email verification > > > > Massimo > > > > On May 7, 10:12 pm, Yannick <[email protected]> wrote: > > > > > 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 -~----------~----~----~----~------~----~------~--~---

