Show More
@@ -59,6 +59,7 b' class ValidAuth(formencode.validators.Fa' | |||
|
59 | 59 | #error mapping |
|
60 | 60 | e_dict = {'username':messages['invalid_login'], |
|
61 | 61 | 'password':messages['invalid_password']} |
|
62 | e_dict_disable = {'username':messages['disabled_account']} | |
|
62 | 63 | |
|
63 | 64 | def validate_python(self, value, state): |
|
64 | 65 | sa = meta.Session |
@@ -90,7 +91,8 b' class ValidAuth(formencode.validators.Fa' | |||
|
90 | 91 | log.warning('user %s is disabled', username) |
|
91 | 92 | raise formencode.Invalid(self.message('disabled_account', |
|
92 | 93 | state=State_obj), |
|
93 |
value, state, |
|
|
94 | value, state, | |
|
95 | error_dict=self.e_dict_disable) | |
|
94 | 96 | |
|
95 | 97 | |
|
96 | 98 |
General Comments 0
You need to be logged in to leave comments.
Login now