允许用户名中出现点号。

修改ldap登录的filter为可以配置。
This commit is contained in:
gefire
2017-06-13 18:02:50 +08:00
parent e7f8702c91
commit 3b4ac00943
3 changed files with 7 additions and 2 deletions

View File

@@ -14,7 +14,9 @@ const CaptchaSessionName = "__captcha__"
const RegexpEmail = `^(\w)+(\.\w+)*@(\w)+((\.\w+)+)$`
const RegexpAccount = `^[a-zA-Z][a-zA-z0-9]{2,50}$`
//允许用户名中出现点号
const RegexpAccount = `^[a-zA-Z][a-zA-z0-9\.]{2,50}$`
// PageSize 默认分页条数.
const PageSize = 15