[gdm] worker: give hint about password expiration



commit 63a44bfcf22580e2b513dabe94124f9b3a93600f
Author: Brian Cameron <Brian Cameron oracle com>
Date:   Tue Jul 30 09:15:59 2013 -0400

    worker: give hint about password expiration
    
    When you run "passwd -f (username)" to expire a users password, and then try to
    login via GDM the following happens:
    
    - user enters their username
    - user enters their password
    - The dialog prompt says "New password"
    - The user enters a new password
    - The dialog prompt says "Enter password again"
    - The user enters the same password, changes their password and their session
      starts.
    
    Some of our users were confused why the dialog was asking for a new password.
    
    This commit adds code to show the user a message explaining that the user
    needs to enter their new password.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=629713

 daemon/gdm-session-worker.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gdm-session-worker.c b/daemon/gdm-session-worker.c
index dd58af7..cf0c24c 100644
--- a/daemon/gdm-session-worker.c
+++ b/daemon/gdm-session-worker.c
@@ -1221,6 +1221,7 @@ gdm_session_worker_authorize_user (GdmSessionWorker *worker,
          */
         if (error_code == PAM_NEW_AUTHTOK_REQD && !worker->priv->is_program_session) {
                 g_debug ("GdmSessionWorker: authenticated user requires new auth token");
++               gdm_session_worker_report_problem (worker, _("Your password has expired, please change it 
now."));
                 error_code = pam_chauthtok (worker->priv->pam_handle, PAM_CHANGE_EXPIRED_AUTHTOK);
 
                 gdm_session_worker_get_username (worker, NULL);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]