diff --git a/ruoyi-admin/src/main/resources/templates/system/user/add.html b/ruoyi-admin/src/main/resources/templates/system/user/add.html index c8124ca5..346a0ee6 100644 --- a/ruoyi-admin/src/main/resources/templates/system/user/add.html +++ b/ruoyi-admin/src/main/resources/templates/system/user/add.html @@ -47,7 +47,7 @@
- +
diff --git a/ruoyi-admin/src/main/resources/templates/system/user/edit.html b/ruoyi-admin/src/main/resources/templates/system/user/edit.html index c9b61d5b..6004a8c2 100644 --- a/ruoyi-admin/src/main/resources/templates/system/user/edit.html +++ b/ruoyi-admin/src/main/resources/templates/system/user/edit.html @@ -48,7 +48,7 @@
- +
diff --git a/ruoyi-admin/src/main/resources/templates/system/user/profile/profile.html b/ruoyi-admin/src/main/resources/templates/system/user/profile/profile.html index 4c762ad8..853d4a75 100644 --- a/ruoyi-admin/src/main/resources/templates/system/user/profile/profile.html +++ b/ruoyi-admin/src/main/resources/templates/system/user/profile/profile.html @@ -77,7 +77,7 @@
- +
diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/shiro/service/SysLoginService.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/shiro/service/SysLoginService.java index 92ebe89d..788c0d57 100644 --- a/ruoyi-framework/src/main/java/com/ruoyi/framework/shiro/service/SysLoginService.java +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/shiro/service/SysLoginService.java @@ -71,6 +71,7 @@ public class SysLoginService // 查询用户信息 SysUser user = userService.selectUserByLoginName(username); + /** if (user == null && maybeMobilePhoneNumber(username)) { user = userService.selectUserByPhoneNumber(username); @@ -80,6 +81,7 @@ public class SysLoginService { user = userService.selectUserByEmail(username); } + */ if (user == null) { @@ -106,6 +108,7 @@ public class SysLoginService return user; } + /** private boolean maybeEmail(String username) { if (!username.matches(UserConstants.EMAIL_PATTERN)) @@ -123,6 +126,7 @@ public class SysLoginService } return true; } + */ /** * 记录登录信息