From f7d6e408ba9314d0cd4b7cf97686d15ccb82bc2e Mon Sep 17 00:00:00 2001 From: Andrea Date: Fri, 5 May 2017 12:55:05 +0200 Subject: [PATCH] Improve UX password_match_message() --- password_security/models/res_users.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/password_security/models/res_users.py b/password_security/models/res_users.py index 53d88a30c..186a057ce 100644 --- a/password_security/models/res_users.py +++ b/password_security/models/res_users.py @@ -48,13 +48,13 @@ class ResUsers(models.Model): company_id = self.company_id message = [] if company_id.password_lower: - message.append('* ' + _('Lowercase letter')) + message.append('\n* ' + _('Lowercase letter')) if company_id.password_upper: - message.append('* ' + _('Uppercase letter')) + message.append('\n* ' + _('Uppercase letter')) if company_id.password_numeric: - message.append('* ' + _('Numeric digit')) + message.append('\n* ' + _('Numeric digit')) if company_id.password_special: - message.append('* ' + _('Special character')) + message.append('\n* ' + _('Special character')) if len(message): message = [_('Must contain the following:')] + message if company_id.password_length: