This is an automated email from the ASF dual-hosted git repository.

boblu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kylin.git


The following commit(s) were added to refs/heads/master by this push:
     new aee4b57  KYLIN-3565 User login error message is inaccurate
aee4b57 is described below

commit aee4b57ece21ad1bd5f33efd23feb79542235d91
Author: Emiya0306 <worfandsh...@qq.com>
AuthorDate: Wed Sep 19 10:55:01 2018 +0800

    KYLIN-3565 User login error message is inaccurate
---
 webapp/app/js/controllers/auth.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/webapp/app/js/controllers/auth.js 
b/webapp/app/js/controllers/auth.js
index 6e5fa30..949093e 100644
--- a/webapp/app/js/controllers/auth.js
+++ b/webapp/app/js/controllers/auth.js
@@ -36,7 +36,9 @@ KylinApp.controller('LoginCtrl', function ($scope, 
$rootScope, $location, $base6
       $location.path(UserService.getHomePage());
     }, function (error) {
       $scope.loading = false;
-      $scope.error = "Unable to login, please check your username/password.";
+      $scope.error = error.status < 500
+        ? "Unable to login, please check your username/password."
+        : "System error, please contact your administrator.";
     });
   };
 });

Reply via email to