mirror of
https://github.com/simon987/nyaa.git
synced 2025-04-19 18:26:43 +00:00
Fix username validator
Tehee, oops!
This commit is contained in:
parent
3f49f17baa
commit
b6ecad898d
@ -37,7 +37,7 @@ class Unique(object):
|
|||||||
|
|
||||||
|
|
||||||
_username_validator = Regexp(
|
_username_validator = Regexp(
|
||||||
r'[a-zA-Z0-9_\-]+',
|
r'^[a-zA-Z0-9_\-]+$',
|
||||||
message='Your username must only consist of alphanumerics and _- (a-zA-Z0-9_-)')
|
message='Your username must only consist of alphanumerics and _- (a-zA-Z0-9_-)')
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user