Skip to content
Snippets Groups Projects
Commit 33e759fa authored by Denis Ledoux's avatar Denis Ledoux
Browse files

[FIX] auth_signup: context is none

Regression introduced in aae980b4

When attempting to use the context,
always check that it is set first.

It was no longer possible to reset a password from the login form

opw-659017
parent 2d543100
No related branches found
No related tags found
No related merge requests found
......@@ -256,6 +256,8 @@ class res_users(osv.Model):
def action_reset_password(self, cr, uid, ids, context=None):
""" create signup token for each user, and send their signup url by email """
# prepare reset password signup
if not context:
context = {}
create_mode = bool(context.get('create_user'))
res_partner = self.pool.get('res.partner')
partner_ids = [user.partner_id.id for user in self.browse(cr, uid, ids, context)]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment