Fix username regex (#235)

Username max length is 1+31 = 32
This commit is contained in:
Birger Jarl 2017-09-07 10:41:49 +03:00 committed by Lonami
parent a93abed737
commit edf325d580

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}"'
)