Yes, sometime later toady or tomorrow.

On May 11, 8:40 pm, Yannick <[email protected]> wrote:
> Yes I did understand that part... I was just wondering if the fix will
> be include the coming version of Auth API in order to have this two
> requirements possible:
> - A simple welcome registration email and password retrieval.
>
> Because right now since the registration_key is empty in order for me
> to retrieve the password I probably have to manually add a new column
> on the Auth_user table that i can use as registration key for password
> retrieval...
>
> Do you please have any design solution that i can take in
> consideration ?
>
> Thanks,
> Yannick P.
>
> On May 11, 5:03 pm, mdipierro <[email protected]> wrote:
>
> > because no mailer is set by default.
>
> > On May 11, 3:20 pm, Yannick <[email protected]> wrote:
>
> > > Oh ok.. you right the password retrieval don't work anymore... I just
> > > realized that the new version has been posted 1.62... the Auth Api
> > > included that clean-up ?
>
> > > Thanks for all...
> > > Yannick P.
>
> > > On May 8, 10:14 pm, mdipierro <[email protected]> wrote:
>
> > > > The Auth API need some more cleanup because this solution will not
> > > > allow users to retrieve passwords since mailer==None.
>
> > > > On May 8, 6:27 pm, Yannick <[email protected]> wrote:
>
> > > > > Thanks Massimo it works... This is so much fun... Thank you I didn't
> > > > > know about this short cup... I wish and hope that some of those short
> > > > > cut will be in the upcoming book...
>
> > > > > Have a goood one,
>
> > > > > Yannick P.
>
> > > > > On May 8, 10:49 am, mdipierro <[email protected]> wrote:
>
> > > > > > You still want
>
> > > > > > auth.settings.mailer=None
>
> > > > > > and
>
> > > > > > auth.settings.register_onaccept=f
>
> > > > > > where
>
> > > > > > def f(form): ... send email to ... form.vars.email
>
> > > > > > On May 8, 9:21 am, Yannick <[email protected]> wrote:
>
> > > > > > > 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to