summaryrefslogtreecommitdiffstats
path: root/app/login
diff options
context:
space:
mode:
authorbeccabroek <beccabroek@gmail.com>2019-03-21 16:54:19 -0500
committerGunnar Mills <gmills@us.ibm.com>2019-03-27 13:41:03 +0000
commitb5c5dc5d6c7d35738949f8576228076642590864 (patch)
tree2cf3df88ba1d5bab5408d6b133c7e688a66514be /app/login
parent20f7715ac50ec4bee9fc7032f53654518f5b8569 (diff)
downloadphosphor-webui-b5c5dc5d6c7d35738949f8576228076642590864.tar.gz
phosphor-webui-b5c5dc5d6c7d35738949f8576228076642590864.zip
Fix login error message
Respose for invalid credentials changed and login page was no longer displaying the correct error message to the user when invalid credentials were entered. Resolves openbmc/phosphor-webui#72 Tested: Logged in with incorrect credentials and saw the correct message. Also logged in with an unreachable host and saw that that message was displaying correctly. Change-Id: I65cc6d6a061986568aded09555c5f75bcd59fe56 Signed-off-by: beccabroek <beccabroek@gmail.com>
Diffstat (limited to 'app/login')
-rw-r--r--app/login/controllers/login-controller.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/login/controllers/login-controller.js b/app/login/controllers/login-controller.js
index 518ede8..7867a0c 100644
--- a/app/login/controllers/login-controller.js
+++ b/app/login/controllers/login-controller.js
@@ -46,7 +46,7 @@ window.angular && (function(angular) {
$window.location.href = next;
}
} else {
- if (description === 'Invalid username or password') {
+ if (description === 'Unauthorized') {
$scope.invalidCredentials = true;
} else {
$scope.serverUnreachable = true;
OpenPOWER on IntegriCloud