Hi All,

Please review these patches.

Fixes : https://fedorahosted.org/freeipa/ticket/5077

Thanks,
Abhijeet Kasurde
From 4b4b34902910cb5e99739292f7005a1584c131e5 Mon Sep 17 00:00:00 2001
From: Abhijeet Kasurde <akasu...@redhat.com>
Date: Fri, 18 Mar 2016 18:20:22 +0530
Subject: [PATCH] Added fix for notifying user about account expiration in Web
 UI

User is now notified about "Kerberos Principal expiration" message instead of
"Wrong username or password" message.

Fixes: https://fedorahosted.org/freeipa/ticket/5077

Signed-off-by: Abhijeet Kasurde <akasu...@redhat.com>
---
 install/ui/src/freeipa/widgets/LoginScreen.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/install/ui/src/freeipa/widgets/LoginScreen.js b/install/ui/src/freeipa/widgets/LoginScreen.js
index 17f891e0ee1d200eb4c9aa881dafcac5fc2c86da..cccc2002a75336ebffa872c291144df4245689d8 100644
--- a/install/ui/src/freeipa/widgets/LoginScreen.js
+++ b/install/ui/src/freeipa/widgets/LoginScreen.js
@@ -67,6 +67,7 @@ define(['dojo/_base/declare',
 
         denied: "Sorry you are not allowed to access this service.",
 
+        user_expired: "Your account has expired.",
 
         //nodes:
         login_btn_node: null,
@@ -231,6 +232,9 @@ define(['dojo/_base/declare',
                 } else if (result === 'password-expired') {
                     this.set('view', 'reset');
                     val_summary.add_info('login', this.password_expired);
+                } else if (result === 'invalid') {
+                    password_f.set_value('');
+                    val_summary.add_error('login', this.user_expired);
                 } else {
                     password_f.set_value('');
                     val_summary.add_error('login', this.form_auth_failed);
-- 
2.4.3

From 33a8c264aeb178911c3e05460811ceec21f88f54 Mon Sep 17 00:00:00 2001
From: Abhijeet Kasurde <akasu...@redhat.com>
Date: Fri, 18 Mar 2016 18:43:11 +0530
Subject: [PATCH] Added fix for notifying user about account expiration in Web
 UI

User is now notified about "Kerberos Principal expiration" message instead of
"Wrong username or password" message.

Fixes: https://fedorahosted.org/freeipa/ticket/5077

Signed-off-by: Abhijeet Kasurde <akasu...@redhat.com>
---
 install/ui/src/freeipa/widgets/LoginScreen.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/install/ui/src/freeipa/widgets/LoginScreen.js b/install/ui/src/freeipa/widgets/LoginScreen.js
index 2c778b50cfb10bfa8eef25c5456c6ce913e02695..71aaad51dda9a0045fe6ce18be7fa0227893c72b 100644
--- a/install/ui/src/freeipa/widgets/LoginScreen.js
+++ b/install/ui/src/freeipa/widgets/LoginScreen.js
@@ -67,6 +67,7 @@ define(['dojo/_base/declare',
 
         denied: "Sorry you are not allowed to access this service.",
 
+        user_expired: "Your account has expired.",
 
         //nodes:
         login_btn_node: null,
@@ -231,6 +232,9 @@ define(['dojo/_base/declare',
                 } else if (result === 'password-expired') {
                     this.set('view', 'reset');
                     val_summary.add_info('login', this.password_expired);
+                } else if (result === 'invalid') {
+                    password_f.set_value('');
+                    val_summary.add_error('login', this.user_expired);
                 } else {
                     password_f.set_value('');
                     val_summary.add_error('login', this.form_auth_failed);
-- 
2.4.3

From d85dff4fe8d324f7008d98df117fd851703052e5 Mon Sep 17 00:00:00 2001
From: Abhijeet Kasurde <akasu...@redhat.com>
Date: Fri, 18 Mar 2016 18:46:55 +0530
Subject: [PATCH] Added fix for notifying user about account expiration in Web
 UI

User is now notified about "Kerberos Principal expiration" message instead of
"Wrong username or password" message.

Fixes: https://fedorahosted.org/freeipa/ticket/5077

Signed-off-by: Abhijeet Kasurde <akasu...@redhat.com>
---
 install/ui/src/freeipa/widgets/LoginScreen.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/install/ui/src/freeipa/widgets/LoginScreen.js b/install/ui/src/freeipa/widgets/LoginScreen.js
index 2c778b50cfb10bfa8eef25c5456c6ce913e02695..71aaad51dda9a0045fe6ce18be7fa0227893c72b 100644
--- a/install/ui/src/freeipa/widgets/LoginScreen.js
+++ b/install/ui/src/freeipa/widgets/LoginScreen.js
@@ -67,6 +67,7 @@ define(['dojo/_base/declare',
 
         denied: "Sorry you are not allowed to access this service.",
 
+        user_expired: "Your account has expired.",
 
         //nodes:
         login_btn_node: null,
@@ -231,6 +232,9 @@ define(['dojo/_base/declare',
                 } else if (result === 'password-expired') {
                     this.set('view', 'reset');
                     val_summary.add_info('login', this.password_expired);
+                } else if (result === 'invalid') {
+                    password_f.set_value('');
+                    val_summary.add_error('login', this.user_expired);
                 } else {
                     password_f.set_value('');
                     val_summary.add_error('login', this.form_auth_failed);
-- 
2.4.3

-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to