注册校验修改
This commit is contained in:
@@ -134,7 +134,7 @@ twilio:
|
|||||||
#你的应用名称
|
#你的应用名称
|
||||||
from-name: RouteZ
|
from-name: RouteZ
|
||||||
from-email-em7941: noreply@em7941.routez.app
|
from-email-em7941: noreply@em7941.routez.app
|
||||||
from-name-em7941: RouteZ
|
from-name-em7941: Vetti
|
||||||
reply-to-em7941: noreply@em7941.routez.app
|
reply-to-em7941: noreply@em7941.routez.app
|
||||||
template-ids:
|
template-ids:
|
||||||
routez-verification-code: d-18475c5d41e349e2bc3a35f2b4992182
|
routez-verification-code: d-18475c5d41e349e2bc3a35f2b4992182
|
||||||
|
|||||||
@@ -157,12 +157,12 @@ public class SysLoginService
|
|||||||
throw new UserPasswordNotMatchException();
|
throw new UserPasswordNotMatchException();
|
||||||
}
|
}
|
||||||
// 用户名不在指定范围内 错误
|
// 用户名不在指定范围内 错误
|
||||||
if (username.length() < UserConstants.USERNAME_MIN_LENGTH
|
// if (username.length() < UserConstants.USERNAME_MIN_LENGTH
|
||||||
|| username.length() > UserConstants.USERNAME_MAX_LENGTH)
|
// || username.length() > UserConstants.USERNAME_MAX_LENGTH)
|
||||||
{
|
// {
|
||||||
AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, Constants.LOGIN_FAIL, MessageUtils.message("user.password.not.match")));
|
// AsyncManager.me().execute(AsyncFactory.recordLogininfor(username, Constants.LOGIN_FAIL, MessageUtils.message("user.password.not.match")));
|
||||||
throw new UserPasswordNotMatchException();
|
// throw new UserPasswordNotMatchException();
|
||||||
}
|
// }
|
||||||
// IP黑名单校验
|
// IP黑名单校验
|
||||||
String blackStr = configService.selectConfigByKey("sys.login.blackIPList");
|
String blackStr = configService.selectConfigByKey("sys.login.blackIPList");
|
||||||
if (IpUtils.isMatchedIp(blackStr, IpUtils.getIpAddr()))
|
if (IpUtils.isMatchedIp(blackStr, IpUtils.getIpAddr()))
|
||||||
|
|||||||
Reference in New Issue
Block a user