changeset 52f3c81e406a in modules/ldap_authentication:default
details: 
https://hg.tryton.org/modules/ldap_authentication?cmd=changeset;node=52f3c81e406a
description:
        Display login on LoginException message

        issue9068
        review266821006
diffstat:

 res.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 8f2a4381d4f7 -r 52f3c81e406a res.py
--- a/res.py    Sun Mar 01 16:12:39 2020 +0100
+++ b/res.py    Tue Mar 17 23:33:10 2020 +0100
@@ -128,7 +128,7 @@
     @classmethod
     def _login_ldap(cls, login, parameters):
         if 'password' not in parameters:
-            msg = cls.fields_get(['password'])['password']['string']
+            msg = gettext('res.msg_user_password', login=login)
             raise LoginException('password', msg, type='password')
         password = parameters['password']
         try:

Reply via email to