This commit is contained in:
mashuai 2024-05-28 10:35:04 +08:00
parent 5725afd23f
commit fab4e67b03
1 changed files with 3 additions and 0 deletions

View File

@ -60,7 +60,10 @@ 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)) {