changeset 4bcf69601d9d in trytond:default
details: https://hg.tryton.org/trytond?cmd=changeset;node=4bcf69601d9d
description:
Add module prefix to "password same as" messages
issue9661
review298731002
diffstat:
trytond/res/user.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (16 lines):
diff -r 9d14839ecb46 -r 4bcf69601d9d trytond/res/user.py
--- a/trytond/res/user.py Thu Oct 08 21:26:20 2020 +0200
+++ b/trytond/res/user.py Thu Oct 08 21:31:49 2020 +0200
@@ -274,9 +274,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))