mirror of
https://github.com/bringout/oca-ocb-security.git
synced 2026-04-20 07:32:00 +02:00
19.0 vanilla
This commit is contained in:
parent
20ddc1b4a3
commit
c0efcc53f5
1162 changed files with 125577 additions and 105287 deletions
|
|
@ -27,7 +27,7 @@ class ResUsers(models.Model):
|
|||
if not password:
|
||||
continue
|
||||
if len(password) < minlength:
|
||||
failures.append(_(u"Passwords must have at least %d characters, got %d.") % (minlength, len(password)))
|
||||
failures.append(_("Your password must contain at least %(minimal_length)d characters and only has %(current_count)d.", minimal_length=minlength, current_count=len(password)))
|
||||
|
||||
if failures:
|
||||
raise UserError(u'\n\n '.join(failures))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue