changeset cb6338a7808a in trytond:5.4
details: https://hg.tryton.org/trytond?cmd=changeset;node=cb6338a7808a
description:
Add module prefix to "password same as" messages
issue9661
review298731002
(grafted from 4bcf69601d9d618a3ae7f537927cb9928a1cccd3)
diffstat:
trytond/res/user.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (16 lines):
diff -r 0bbd77676bcc -r cb6338a7808a trytond/res/user.py
--- a/trytond/res/user.py Thu Sep 24 23:05:04 2020 +0200
+++ b/trytond/res/user.py Thu Oct 08 21:31:49 2020 +0200
@@ -280,9 +280,9 @@
for user in users:
# Use getattr to allow to use non User instances
for test, message in [
- (getattr(user, 'name', ''), 'msg_password_name'),
- (getattr(user, 'login', ''), 'msg_password_login'),
- (getattr(user, 'email', ''), 'msg_password_email'),
+ (getattr(user, 'name', ''), 'res.msg_password_name'),
+ (getattr(user, 'login', ''), 'res.msg_password_login'),
+ (getattr(user, 'email', ''), 'res.msg_password_email'),
]:
if test and password.lower() == test.lower():
raise PasswordError(gettext(message))