commit
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
package com.budwk.app.sys.controller;
|
package com.budwk.app.sys.controller;
|
||||||
|
|
||||||
import cn.dev33.satoken.stp.StpUtil;
|
import cn.dev33.satoken.stp.StpUtil;
|
||||||
|
import cn.hutool.core.codec.Base64Decoder;
|
||||||
|
import cn.hutool.core.codec.Base64Encoder;
|
||||||
import cn.hutool.core.convert.Convert;
|
import cn.hutool.core.convert.Convert;
|
||||||
import cn.hutool.core.util.StrUtil;
|
import cn.hutool.core.util.StrUtil;
|
||||||
import cn.hutool.http.HttpUtil;
|
import cn.hutool.http.HttpUtil;
|
||||||
@@ -133,6 +135,7 @@ public class SysLoginController {
|
|||||||
if (decryptPwd == null) {
|
if (decryptPwd == null) {
|
||||||
throw new BaseException("用户登录失败");
|
throw new BaseException("用户登录失败");
|
||||||
}
|
}
|
||||||
|
decryptPwd = Base64Encoder.encode(decryptPwd);
|
||||||
|
|
||||||
// 用户名密码校验
|
// 用户名密码校验
|
||||||
Sys_user user = sysUserService.loginByPassword(username, decryptPwd);
|
Sys_user user = sysUserService.loginByPassword(username, decryptPwd);
|
||||||
|
|||||||
Reference in New Issue
Block a user