This commit is contained in:
mashuai 2024-05-28 11:00:53 +08:00
parent fab4e67b03
commit 713a0b6b0f
1 changed files with 0 additions and 3 deletions

View File

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