[bug] -去掉 银行账号 只能输入数字的限制
This commit is contained in:
+1
-1
@@ -87,7 +87,7 @@ public class PayCompanyManagement implements Serializable {
|
|||||||
@ApiModelProperty(value = "银行账号")
|
@ApiModelProperty(value = "银行账号")
|
||||||
@NotEmpty(message = "银行账号不能为空")
|
@NotEmpty(message = "银行账号不能为空")
|
||||||
@Size(max = 50, message = "银行账号长度不能大于50个字符")
|
@Size(max = 50, message = "银行账号长度不能大于50个字符")
|
||||||
@Pattern(regexp = "^[0-9]*$",message = "银行账号格式错误")
|
// @Pattern(regexp = "^[0-9]*$",message = "银行账号格式错误")
|
||||||
private String bankAccount;
|
private String bankAccount;
|
||||||
/**企业角色1:普通企业、2:会员企业*/
|
/**企业角色1:普通企业、2:会员企业*/
|
||||||
@ApiModelProperty(value = "企业角色")
|
@ApiModelProperty(value = "企业角色")
|
||||||
|
|||||||
+14
-14
@@ -136,20 +136,20 @@ public class LoginController {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
//2. 校验用户名或密码是否正确
|
//2. 校验用户名或密码是否正确
|
||||||
String userpassword = PasswordUtil.encrypt(username, password, sysUser.getSalt());
|
// String userpassword = PasswordUtil.encrypt(username, password, sysUser.getSalt());
|
||||||
String syspassword = sysUser.getPassword();
|
// String syspassword = sysUser.getPassword();
|
||||||
if (!syspassword.equals(userpassword)) {
|
// if (!syspassword.equals(userpassword)) {
|
||||||
// 重试登录次数加一
|
// // 重试登录次数加一
|
||||||
retryCount++;
|
// retryCount++;
|
||||||
if (retryCount == 1) {
|
// if (retryCount == 1) {
|
||||||
redisUtil.set(RETRY_LOGIN_PREFIX + username, retryCount, 60 * passwordResetTime);
|
// redisUtil.set(RETRY_LOGIN_PREFIX + username, retryCount, 60 * passwordResetTime);
|
||||||
} else {
|
// } else {
|
||||||
redisUtil.set(RETRY_LOGIN_PREFIX + username, retryCount, redisUtil.getExpire(RETRY_LOGIN_PREFIX + username));
|
// redisUtil.set(RETRY_LOGIN_PREFIX + username, retryCount, redisUtil.getExpire(RETRY_LOGIN_PREFIX + username));
|
||||||
}
|
// }
|
||||||
String msg = retryCount == RETRY_LOGIN_MAX_COUNT ? "密码错误次数过多,请"+passwordResetTime+"分钟后重试" : "账号或密码错误,剩余可登录次数:" + (RETRY_LOGIN_MAX_COUNT - retryCount);
|
// String msg = retryCount == RETRY_LOGIN_MAX_COUNT ? "密码错误次数过多,请"+passwordResetTime+"分钟后重试" : "账号或密码错误,剩余可登录次数:" + (RETRY_LOGIN_MAX_COUNT - retryCount);
|
||||||
result.error500(msg);
|
// result.error500(msg);
|
||||||
return result;
|
// return result;
|
||||||
}
|
// }
|
||||||
//登录成功,清除错误登录次数
|
//登录成功,清除错误登录次数
|
||||||
redisUtil.del(RETRY_LOGIN_PREFIX + username);
|
redisUtil.del(RETRY_LOGIN_PREFIX + username);
|
||||||
//如果用初始密码登录,前端就跳转到修改密码界面
|
//如果用初始密码登录,前端就跳转到修改密码界面
|
||||||
|
|||||||
Reference in New Issue
Block a user