checkPassword简化代码,去掉冗余的if
This commit is contained in:
parent
bd0e574268
commit
254971ee4e
|
|
@ -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")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue