Forráskód Böngészése

密码异常调整

anderx 5 éve%!(EXTRA string=óta)
szülő
commit
33f665c2fc

+ 3 - 0
src/main/java/com/kede/core/shiro/token/UserRealm.java

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