Fixed username regex

Username max length is 1+31 = 32
This commit is contained in:
Birger Jarl 2017-09-07 00:25:25 +03:00 committed by GitHub
parent a93abed737
commit 8fe6724448

View File

@ -284,7 +284,7 @@ class UsernameInvalidError(BadRequestError):
def __init__(self, **kwargs):
super(Exception, self).__init__(
self,
'Unacceptable username. Must match r"[a-zA-Z][\w\d]{4,32}"'
'Unacceptable username. Must match r"[a-zA-Z][\w\d]{4,31}"'
)