Skip to content

Commit

Permalink
✏️ 管理系统端登录时验证码大小写问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ZHENFENG13 committed Feb 5, 2022
1 parent 7365a01 commit f473ce2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public String login(@RequestParam("userName") String userName,
return "admin/login";
}
String kaptchaCode = session.getAttribute("verifyCode") + "";
if (StringUtils.isEmpty(kaptchaCode) || !verifyCode.equals(kaptchaCode)) {
if (StringUtils.isEmpty(kaptchaCode) || !verifyCode.toLowerCase().equals(kaptchaCode)) {
session.setAttribute("errorMsg", "验证码错误");
return "admin/login";
}
Expand Down

0 comments on commit f473ce2

Please sign in to comment.