From 8b2a0b62bab158417babd0182d4dc00adf8ec521 Mon Sep 17 00:00:00 2001 From: Ivan Alejandro Date: Fri, 23 May 2014 14:37:26 -0300 Subject: Allow usernames to end in a digit. --- changes/bug_allow-usernames-ending-with-digit | 1 + src/leap/bitmask/util/credentials.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changes/bug_allow-usernames-ending-with-digit diff --git a/changes/bug_allow-usernames-ending-with-digit b/changes/bug_allow-usernames-ending-with-digit new file mode 100644 index 00000000..de47e7ac --- /dev/null +++ b/changes/bug_allow-usernames-ending-with-digit @@ -0,0 +1 @@ +- Allow usernames to end in a digit. diff --git a/src/leap/bitmask/util/credentials.py b/src/leap/bitmask/util/credentials.py index a661bfb0..07ded17b 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]$" +USERNAME_REGEX = r"^[A-Za-z][A-Za-z\d_\-\.]+[A-Za-z\d]$" USERNAME_VALIDATOR = QtGui.QRegExpValidator(QtCore.QRegExp(USERNAME_REGEX)) -- cgit v1.2.3