[Update] 修改用户名校验规则

pull/1293/head
ibuler 2018-05-04 14:58:52 +08:00
parent cde2e7adb0
commit 4ed9e11090
1 changed files with 1 additions and 1 deletions

View File

@ -4,4 +4,4 @@ from django.core.validators import RegexValidator
from django.utils.translation import ugettext_lazy as _
alphanumeric = RegexValidator(r'^[0-9a-zA-Z_-]*$', _('Special char not allowed'))
alphanumeric = RegexValidator(r'^[0-9a-zA-Z_@\-\.]*$', _('Special char not allowed'))