|
@@ -225,13 +225,13 @@ public class SysLoginController {
|
|
|
@ResponseBody
|
|
|
@RequestMapping(value = "/sys/login", method = RequestMethod.POST)
|
|
|
public Result login(String username, String password, String captcha) throws IOException {
|
|
|
- String kaptcha = ShiroUtils.getKaptcha(Constants.KAPTCHA_SESSION_KEY);
|
|
|
- if (null == kaptcha) {
|
|
|
- return Result.failure("验证码已失效");
|
|
|
- }
|
|
|
- if (!captcha.equalsIgnoreCase(kaptcha)) {
|
|
|
- return Result.failure("验证码不正确");
|
|
|
- }
|
|
|
+// String kaptcha = ShiroUtils.getKaptcha(Constants.KAPTCHA_SESSION_KEY);
|
|
|
+// if (null == kaptcha) {
|
|
|
+// return Result.failure("验证码已失效");
|
|
|
+// }
|
|
|
+// if (!captcha.equalsIgnoreCase(kaptcha)) {
|
|
|
+// return Result.failure("验证码不正确");
|
|
|
+// }
|
|
|
|
|
|
//对前端传的密码解密
|
|
|
password = Base64Converter.decode(Base64Converter.subText(password));
|