Browse Source

Better validation order for usernames

Rafał Pitoń 11 years ago
parent
commit
35f9e3fef2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      misago/users/validators.py

+ 1 - 1
misago/users/validators.py

@@ -104,7 +104,7 @@ def validate_username_length(value):
 
 def validate_username(value, exclude=None):
     """shortcut function that does complete validation of username"""
-    validate_username_content(value)
     validate_username_length(value)
+    validate_username_content(value)
     validate_username_available(value, exclude)
     validate_username_banned(value)