Do you have an error or traceback?

Anyway, for security reasons you should call

request_reset_password

instead of

retrieve_password which is deprecated because of security issues.

Anyway, do you get email on registration?

On Sep 29, 10:30 pm, Yannick <[email protected]> wrote:
> Thanks for the note. I added 'registration_id' and [CRYPT()] but No
> luck still failing to send the password.
> The form validation fails in the method reset_password_deprecated()
> inside Tools.py
>
> This is weird...
>
> On Sep 29, 9:28 am, mdipierro <[email protected]> wrote:
>
> > The only issues I see are [CRYPT()] instead of crypt and
> > 'registration_id' field is missing (but it should be optional).
> > Anyway, try this
> > db.define_table(
> >               auth.settings.table_user_name,
> >               Field('fullname', length=250, default=''),
> >               Field('email', length=128,default=''),
> > db.Field('creationTime',type='datetime',default=now,writable=False),
> >               Field('password', 'password',
> > readable=False,label='Password', requires=[CRYPT()]),
> >               Field('registration_key', length=128,
> > writable=False,
> > readable=False,default=''),
> >               Field('registration_id', length=128,
> > writable=False,
> > readable=False,default=''),
> >               Field('reset_password_key', length=128, default=
> > '',writable=False, readable=False),
> >               migrate=True)
>
> > Any change? I do not think anything has changed in web2py that should
> > affect behavior here.
>
> > On Sep 28, 11:53 pm, Yannick <[email protected]> wrote:
>
> > > Hello mate,
> > > I wonder if any one has the same issue with the retrieve_password()
> > > in
> > > tools.
>
> > > #Here is the controllers:
> > > def forgotPassword():
> > >     return dict(forgotPwdForm = auth.retrieve_password())
>
> > > # Here is the view "forgotPassword.html"
> > > <h3>Forgot Your Password ? Please enter your email</h3>
> > >   {{=forgotPwdForm}}
>
> > > # Here is the model
> > > ...
> > > auth.settings.mailer=mail
> > > ...
> > > auth.settings.table_user = db.define_table(
> > >               auth.settings.table_user_name,
> > >               db.Field('fullname', length=250, default=''),
> > >               db.Field('email', length=128,default=''),
> > > db.Field('creationTime',type='datetime',default=now,writable=False),
> > >               db.Field('password', 'password',
> > > readable=False,label='Password', requires=CRYPT()),
> > >               db.Field('registration_key', length=128,
> > > writable=False,
> > > readable=False,default=''),
> > >               db.Field('reset_password_key', length=128, default=
> > > '',writable=False, readable=False),
> > >               migrate=True)
>
> > > From the view when the user enter the email, nothing really happen,
> > > no
> > > error message. The email is not sent... The Form validation in the
> > > Tools.py fails.
>
> > > I'm using Web2py Version 1.83.2
> > > Please let me know if you have any idea... This code used to work
> > > with
> > > previous version of Web2py...Thanks,
> > > Thanks
>
>

Reply via email to