Commit c733a28a authored by linlinjava's avatar linlinjava
Browse files

chore

parent 5f054220
...@@ -111,7 +111,7 @@ public class AdminAuthController { ...@@ -111,7 +111,7 @@ public class AdminAuthController {
currentUser.login(new UsernamePasswordToken(username, password)); currentUser.login(new UsernamePasswordToken(username, password));
} catch (UnknownAccountException uae) { } catch (UnknownAccountException uae) {
logHelper.logAuthFail("登录", "用户帐号或密码不正确"); logHelper.logAuthFail("登录", "用户帐号或密码不正确");
return ResponseUtil.fail(ADMIN_INVALID_ACCOUNT, "用户帐号或密码不正确"); return ResponseUtil.fail(ADMIN_INVALID_ACCOUNT, "用户帐号或密码不正确", doKaptcha(request));
} catch (LockedAccountException lae) { } catch (LockedAccountException lae) {
logHelper.logAuthFail("登录", "用户帐号已锁定不可用"); logHelper.logAuthFail("登录", "用户帐号已锁定不可用");
return ResponseUtil.fail(ADMIN_INVALID_ACCOUNT, "用户帐号已锁定不可用"); return ResponseUtil.fail(ADMIN_INVALID_ACCOUNT, "用户帐号已锁定不可用");
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
"@tinymce/tinymce-vue": "3.0.1", "@tinymce/tinymce-vue": "3.0.1",
"lodash": "^4.17.11", "lodash": "^4.17.11",
"v-charts": "1.19.0", "v-charts": "1.19.0",
"axios": "0.18.1", "axios": "0.21.1",
"clipboard": "2.0.4", "clipboard": "2.0.4",
"connect": "3.6.6", "connect": "3.6.6",
"echarts": "4.2.1", "echarts": "4.2.1",
......
...@@ -113,7 +113,7 @@ export default { ...@@ -113,7 +113,7 @@ export default {
this.loading = false this.loading = false
this.$router.push({ path: this.redirect || '/' }) this.$router.push({ path: this.redirect || '/' })
}).catch(response => { }).catch(response => {
if (response.data.errno === 606 || response.data.errno === 605) { if (response.data.data) {
this.codeImg = response.data.data this.codeImg = response.data.data
} }
this.$notify.error({ this.$notify.error({
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment