MaxKey 2 роки тому
батько
коміт
81d6bc3198

+ 1 - 1
maxkey-web-frontend/maxkey-web-app/src/app/routes/passport/login/login.component.ts

@@ -261,7 +261,7 @@ export class UserLoginComponent implements OnInit, OnDestroy {
       .subscribe(res => {
         this.loading = true;
         if (res.code !== 0) {
-          this.error = '登录失败,请重新登录'; //res.msg;
+          this.error = res.msg;
           //this.msg.success(`登录失败,请重新登录!`);
           if (this.loginType === 'normal') {
             this.getImageCaptcha();

+ 1 - 2
maxkey-web-frontend/maxkey-web-mgt-app/src/app/routes/passport/login/login.component.ts

@@ -161,9 +161,8 @@ export class UserLoginComponent implements OnInit, OnDestroy {
       .subscribe(res => {
         this.loading = true;
         if (res.code !== 0) {
-          this.error = '登录失败,请重新登录'; //res.msg;
+          this.error = res.msg;
           //this.msg.success(`登录失败,请重新登录!`);
-
           this.getImageCaptcha();
         } else {
           // 清空路由复用信息