Commits

Donald Stufft  committed 5397176 Merge

Merged in /webuipy-edited-online-with-bitbucket-1378299350738 (pull request #4)

Tweak error message for too short and insufficiently complex passwords.

  • Participants
  • Parent commits 67973b8, f5f7764

Comments (0)

Files changed (1)

 
         if len(pw) < 16 and (pw.isdigit() or pw.isalpha() or pw.isupper()
                 or pw.islower()):
-            return 'Please use a mix of different-case letters and numbers '\
-                'in your password.'
+            return 'Please use 16 or more characters, or a mix of ' \
+                   'different-case letters and numbers '\
+                   'in your password.'
 
         return ''