bug
This commit is contained in:
parent
5725afd23f
commit
fab4e67b03
|
|
@ -60,7 +60,10 @@ 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