修改路由和提示文案
This commit is contained in:
@@ -62,7 +62,8 @@ public class LoginController {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (userInfo == null) {
|
if (userInfo == null) {
|
||||||
return DocResponseJson.warn("用户名'" + username + "'没有找到!");
|
// 不应该明确告诉是没用户还是密码错误,防止密码暴力破解
|
||||||
|
return DocResponseJson.warn("用户名或密码错误");
|
||||||
}
|
}
|
||||||
String pwdMd5 = DigestUtils.md5DigestAsHex(password.getBytes());
|
String pwdMd5 = DigestUtils.md5DigestAsHex(password.getBytes());
|
||||||
if (!Objects.equals(userInfo.getPassword(), pwdMd5)) {
|
if (!Objects.equals(userInfo.getPassword(), pwdMd5)) {
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ let routes = [
|
|||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: '/page/share/mobile/view',
|
path: '/page/share/mobile/view',
|
||||||
name: 'WIKI-开放文档',
|
name: 'WIKI-开放文档-APP',
|
||||||
component: shareMobileView,
|
component: shareMobileView,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user