[FIX] auth_signup: translate exception
The exception raised when resetting the password must be translated.
This commit is contained in:
parent
ece10c3401
commit
e9c5da3524
|
@ -264,7 +264,7 @@ class res_users(osv.Model):
|
||||||
if not user_ids:
|
if not user_ids:
|
||||||
user_ids = self.search(cr, uid, [('email', '=', login)], context=context)
|
user_ids = self.search(cr, uid, [('email', '=', login)], context=context)
|
||||||
if len(user_ids) != 1:
|
if len(user_ids) != 1:
|
||||||
raise Exception(_("Reset password: invalid username or email"))
|
raise Exception(_('Reset password: invalid username or email'))
|
||||||
return self.action_reset_password(cr, uid, user_ids, context=context)
|
return self.action_reset_password(cr, uid, user_ids, context=context)
|
||||||
|
|
||||||
def action_reset_password(self, cr, uid, ids, context=None):
|
def action_reset_password(self, cr, uid, ids, context=None):
|
||||||
|
|
Loading…
Reference in New Issue