Code

Just war the user once about the password expiration.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 6 Jul 2010 05:55:51 +0000 (05:55 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 6 Jul 2010 05:55:51 +0000 (05:55 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@18935 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/html/main.php

index a7dda33dfcad80d3e399feb2cee6ffaa53ac1e96..ca5017b7656fdc26a381998ca775111a2338910b 100644 (file)
@@ -191,11 +191,13 @@ $plist->gen_menu();
 $smarty->assign("hideMenus", FALSE);
 if ($config->get_cfg_value("handleExpiredAccounts") == "true"){
     $expired= ldap_expired_account($config, $ui->dn, $ui->username);
-    if ($expired == POSIX_WARN_ABOUT_EXPIRATION){
+    if ($expired == POSIX_WARN_ABOUT_EXPIRATION && !session::is_set('POSIX_WARN_ABOUT_EXPIRATION__DONE')){
 
         // The users password is about to xpire soon, display a warning message.
         new log("security","gosa","",array(),"password for user \"$ui->username\" is about to expire") ;
         msg_dialog::display(_("Password change"), _("Your password is about to expire, please change your password!"), INFO_DIALOG);
+        session::set('POSIX_WARN_ABOUT_EXPIRATION__DONE', TRUE);
+    
     } elseif ($expired == POSIX_FORCE_PASSWORD_CHANGE){
 
         // The password is expired, we are now going to enforce a new one from the user.