checkPassword简化代码,去掉冗余的if

This commit is contained in:
chenjh3 2022-10-28 14:18:07 +08:00
parent bd0e574268
commit 254971ee4e
1 changed files with 1 additions and 5 deletions

View File

@ -63,11 +63,7 @@ public class SysProfileController extends BaseController
public boolean checkPassword(String password) public boolean checkPassword(String password)
{ {
SysUser user = getSysUser(); SysUser user = getSysUser();
if (passwordService.matches(user, password)) return passwordService.matches(user, password);
{
return true;
}
return false;
} }
@GetMapping("/resetPwd") @GetMapping("/resetPwd")