From ec9897ff1f65afe19a3f99ef7070613a14c1dd3c Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 6 Jul 2010 05:55:51 +0000 Subject: [PATCH] Just war the user once about the password expiration. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@18935 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/html/main.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gosa-core/html/main.php b/gosa-core/html/main.php index a7dda33df..ca5017b76 100644 --- a/gosa-core/html/main.php +++ b/gosa-core/html/main.php @@ -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. -- 2.30.2