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

pull/417/head
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)
{
SysUser user = getSysUser();
if (passwordService.matches(user, password))
{
return true;
}
return false;
return passwordService.matches(user, password);
}
@GetMapping("/resetPwd")