]> rtime.felk.cvut.cz Git - sojka/lightdm.git/blobdiff - src/session-child.c
Merge from trunk
[sojka/lightdm.git] / src / session-child.c
index 1feb7ac25239419d33819a1fbde1fafddeda7e18..6d6d05e907516f4233e68cb509be22b4233cd8b0 100644 (file)
@@ -334,7 +334,7 @@ session_child_run (int argc, char **argv)
         if (authentication_result == PAM_SUCCESS)
             authentication_result = pam_acct_mgmt (pam_handle, 0);
         if (authentication_result == PAM_NEW_AUTHTOK_REQD)
-            authentication_result = pam_chauthtok (pam_handle, 0);
+            authentication_result = pam_chauthtok (pam_handle, PAM_CHANGE_EXPIRED_AUTHTOK);
     }
     else
         authentication_result = PAM_SUCCESS;