...
|
...
|
@@ -85,7 +85,6 @@ export default { |
|
|
login(username, password, captcha) {
|
|
|
this.$Loading.start();
|
|
|
Vue.passport.local(username, password, captcha).then((ret) => {
|
|
|
console.log(ret);
|
|
|
if (ret.needUpdate) {
|
|
|
this.$Message.error('你的密码过于简单,请务必修改密码');
|
|
|
this.$router.push('/user/password.html');
|
...
|
...
|
@@ -97,7 +96,6 @@ export default { |
|
|
}
|
|
|
this.$Loading.finish();
|
|
|
}, (error) => {
|
|
|
this.$router.push('/');
|
|
|
this.$Loading.error();
|
|
|
this.$Message.error(error.message);
|
|
|
this.failNum++;
|
...
|
...
|
|