Pre Merge pull request !459 from abbfun/N/A
This commit is contained in:
commit
831703c6d1
@ -96,8 +96,9 @@ public class SysProfileController extends BaseController
|
||||
public AjaxResult updatePwd(String oldPassword, String newPassword)
|
||||
{
|
||||
LoginUser loginUser = getLoginUser();
|
||||
String userName = loginUser.getUsername();
|
||||
String password = loginUser.getPassword();
|
||||
SysUser user = userService.selectUserById(loginUser.getUserId());
|
||||
String userName = user.getUserName();
|
||||
String password = user.getPassword();
|
||||
if (!SecurityUtils.matchesPassword(oldPassword, password))
|
||||
{
|
||||
return AjaxResult.error("修改密码失败,旧密码错误");
|
||||
|
Loading…
x
Reference in New Issue
Block a user