From 303e3aea45c310e8a2508ac540264520d5d3eda4 Mon Sep 17 00:00:00 2001
From: Abhijeet Kasurde <akasurde@redhat.com>
Date: Mon, 28 Dec 2015 12:33:11 +0530
Subject: [PATCH] Fixed login error message box in LoginScreen page
Fix added for showing error message returned from server to client
browser. User is now notified with proper error messages returned by
server.
https://bugzilla.redhat.com/show_bug.cgi?id=1293870
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
---
install/ui/src/freeipa/widgets/LoginScreen.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/install/ui/src/freeipa/widgets/LoginScreen.js b/install/ui/src/freeipa/widgets/LoginScreen.js
index eb95b9161f05eeac1ec9aed286c9730dada85d59..2c778b50cfb10bfa8eef25c5456c6ce913e02695 100644
--- a/install/ui/src/freeipa/widgets/LoginScreen.js
+++ b/install/ui/src/freeipa/widgets/LoginScreen.js
@@ -272,12 +272,12 @@ define(['dojo/_base/declare',
}
this.set('view', 'login');
} else {
+ otp_f.set_value('');
+ new_f.set_value('');
+ ver_f.set_value('');
val_summary.add_error('login', result.message);
}
- otp_f.set_value('');
- new_f.set_value('');
- ver_f.set_value('');
},
refresh: function() {
@@ -426,4 +426,4 @@ define(['dojo/_base/declare',
];
return LoginScreen;
-});
\ No newline at end of file
+});
--
2.5.0