summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/util
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2014-08-15 09:50:58 -0500
committerKali Kaneko <kali@leap.se>2014-08-15 09:50:58 -0500
commit001a1179970e86cf3fd05ad04fd3df7a8504a234 (patch)
tree5d6f7e140589ffb69057c7f4cd169d0358201e21 /src/leap/bitmask/util
parent20926dc2c3218c8fac1a3b4553a50b3db485dd2d (diff)
parente8c028f3eb6cd0681f039c456dc1ac45c98d598f (diff)
Merge tag '0.6.1' into deb-0.6.1
Tag leap.bitmask version 0.6.1
Diffstat (limited to 'src/leap/bitmask/util')
-rw-r--r--src/leap/bitmask/util/credentials.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/leap/bitmask/util/credentials.py b/src/leap/bitmask/util/credentials.py
index 07ded17b..757ce10c 100644
--- a/src/leap/bitmask/util/credentials.py
+++ b/src/leap/bitmask/util/credentials.py
@@ -21,7 +21,7 @@ Credentials utilities
from PySide import QtCore, QtGui
WEAK_PASSWORDS = ("123456", "qweasd", "qwerty", "password")
-USERNAME_REGEX = r"^[A-Za-z][A-Za-z\d_\-\.]+[A-Za-z\d]$"
+USERNAME_REGEX = r"^[a-z][a-z\d_\-\.]+[a-z\d]$"
USERNAME_VALIDATOR = QtGui.QRegExpValidator(QtCore.QRegExp(USERNAME_REGEX))
@@ -69,7 +69,7 @@ def password_checks(username, password, password2):
if message is None and not password:
message = _tr("You can't use an empty password")
- if message is None and len(password) < 6:
+ if message is None and len(password) < 8:
message = _tr("Password too short")
if message is None and password in WEAK_PASSWORDS: