Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
c733a28a
Commit
c733a28a
authored
Jan 10, 2021
by
linlinjava
Browse files
chore
parent
5f054220
Changes
3
Hide whitespace changes
Inline
Side-by-side
litemall-admin-api/src/main/java/org/linlinjava/litemall/admin/web/AdminAuthController.java
View file @
c733a28a
...
...
@@ -111,7 +111,7 @@ public class AdminAuthController {
currentUser
.
login
(
new
UsernamePasswordToken
(
username
,
password
));
}
catch
(
UnknownAccountException
uae
)
{
logHelper
.
logAuthFail
(
"登录"
,
"用户帐号或密码不正确"
);
return
ResponseUtil
.
fail
(
ADMIN_INVALID_ACCOUNT
,
"用户帐号或密码不正确"
);
return
ResponseUtil
.
fail
(
ADMIN_INVALID_ACCOUNT
,
"用户帐号或密码不正确"
,
doKaptcha
(
request
)
);
}
catch
(
LockedAccountException
lae
)
{
logHelper
.
logAuthFail
(
"登录"
,
"用户帐号已锁定不可用"
);
return
ResponseUtil
.
fail
(
ADMIN_INVALID_ACCOUNT
,
"用户帐号已锁定不可用"
);
...
...
litemall-admin/package.json
View file @
c733a28a
...
...
@@ -46,7 +46,7 @@
"@tinymce/tinymce-vue"
:
"3.0.1"
,
"lodash"
:
"^4.17.11"
,
"v-charts"
:
"1.19.0"
,
"axios"
:
"0.1
8
.1"
,
"axios"
:
"0.
2
1.1"
,
"clipboard"
:
"2.0.4"
,
"connect"
:
"3.6.6"
,
"echarts"
:
"4.2.1"
,
...
...
litemall-admin/src/views/login/index.vue
View file @
c733a28a
...
...
@@ -113,7 +113,7 @@ export default {
this
.
loading
=
false
this
.
$router
.
push
({
path
:
this
.
redirect
||
'
/
'
})
}).
catch
(
response
=>
{
if
(
response
.
data
.
errno
===
606
||
response
.
data
.
errno
===
605
)
{
if
(
response
.
data
.
data
)
{
this
.
codeImg
=
response
.
data
.
data
}
this
.
$notify
.
error
({
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment