Are you using session.secure() and transitioning from https to http during this process? You may need to show some additional code.
On Sunday, September 27, 2015 at 9:06:08 AM UTC-4, Lisandro wrote: > > I've implemented a custom change password form that works ok. However, > everytime I change my password, web2py logs me out. I would like to stay > logged in. > > The sentence I use to update the password is this: > # user_row variable is the row of the user in auth_user table, and > text_pass is the password in text plain > user_row.update_record(password=db.auth_user.password.validate(text_pass)[ > 0]) > > I've inspeted the Auth code, and I've found this settings, but I can't > figure out how they work (except for the first one that is documented): > auth.settings.change_password_onvalidation > auth.settings.change_password_onaccept > > I've tried calling auth.profile() right after updating the record, but it > still logs me out. > Any help will be appreciated. Thanks! > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

