mirror of https://gitee.com/y_project/RuoYi.git
checkPassword简化代码,去掉冗余的if
parent
bd0e574268
commit
254971ee4e
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue