bug
This commit is contained in:
parent
fab4e67b03
commit
713a0b6b0f
|
|
@ -60,10 +60,7 @@ public class TokenController {
|
||||||
//web端登录
|
//web端登录
|
||||||
@PostMapping("login")
|
@PostMapping("login")
|
||||||
public R<?> login(@RequestBody LoginBody form) throws Exception {
|
public R<?> login(@RequestBody LoginBody form) throws Exception {
|
||||||
log.info("用户进行登录操作,请求对象为:{}", form);
|
|
||||||
log.info("用户进行登录操作,请求密文为:{}", form.getPassword());
|
|
||||||
String decryptedData = RsaUtil.decryptByPrivateKey(form.getPassword(), privateKey);
|
String decryptedData = RsaUtil.decryptByPrivateKey(form.getPassword(), privateKey);
|
||||||
log.info("对密文解密后的密码:{}", decryptedData);
|
|
||||||
// 用户登录
|
// 用户登录
|
||||||
LoginUser userInfo = sysLoginService.login(form.getUsername(), decryptedData);
|
LoginUser userInfo = sysLoginService.login(form.getUsername(), decryptedData);
|
||||||
if (decryptedData.equals(USER_PASSWORD)) {
|
if (decryptedData.equals(USER_PASSWORD)) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue