修改路由和提示文案

This commit is contained in:
暮光:城中城
2023-03-28 08:31:56 +08:00
parent 5b01d3274a
commit f95ca14ec8
2 changed files with 3 additions and 2 deletions

View File

@@ -62,7 +62,8 @@ public class LoginController {
}
} else {
if (userInfo == null) {
return DocResponseJson.warn("用户名'" + username + "'没有找到!");
// 不应该明确告诉是没用户还是密码错误,防止密码暴力破解
return DocResponseJson.warn("用户名或密码错误");
}
String pwdMd5 = DigestUtils.md5DigestAsHex(password.getBytes());
if (!Objects.equals(userInfo.getPassword(), pwdMd5)) {

View File

@@ -56,7 +56,7 @@ let routes = [
children: [
{
path: '/page/share/mobile/view',
name: 'WIKI-开放文档',
name: 'WIKI-开放文档-APP',
component: shareMobileView,
},
],