|
@@ -45,6 +45,9 @@ public class UserRealm extends AuthorizingRealm {
|
|
|
ShiroToken token = (ShiroToken) authcToken;
|
|
ShiroToken token = (ShiroToken) authcToken;
|
|
|
|
|
|
|
|
Admin admin = adminService.selectByUserName(token.getUsername());
|
|
Admin admin = adminService.selectByUserName(token.getUsername());
|
|
|
|
|
+ System.out.println("原密码:"+admin.getPassword());
|
|
|
|
|
+ admin.setPassword(token.getPwd());
|
|
|
|
|
+ System.out.println("输入密码:"+passwordUtil.getEncryptPwd(admin));
|
|
|
if (null == admin) {
|
|
if (null == admin) {
|
|
|
throw new UnknownAccountException();
|
|
throw new UnknownAccountException();
|
|
|
}
|
|
}
|