diff options
author | Andreas Gohr <andi@splitbrain.org> | 2012-02-17 13:39:38 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2012-02-17 13:39:38 +0100 |
commit | 69995a164f9dbb51adfe17f09901e0200ea8dc7a (patch) | |
tree | 95a0dbb78112e515357cdcc9fed9e4e0ef2dc67f /inc/auth/ad.class.php | |
parent | b2117c6969fc31aa958f6019fd1e4e258f555db7 (diff) | |
download | rpg-69995a164f9dbb51adfe17f09901e0200ea8dc7a.tar.gz rpg-69995a164f9dbb51adfe17f09901e0200ea8dc7a.tar.bz2 |
do not hardcode profile link in AD pass expire message
Changing passwords might not be available.
Diffstat (limited to 'inc/auth/ad.class.php')
-rw-r--r-- | inc/auth/ad.class.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/inc/auth/ad.class.php b/inc/auth/ad.class.php index cb59c5a48..dc1fef17a 100644 --- a/inc/auth/ad.class.php +++ b/inc/auth/ad.class.php @@ -149,6 +149,7 @@ class auth_ad extends auth_basic { function getUserData($user){ global $conf; global $lang; + global $ID; if(!$this->_init()) return false; if($user == '') return array(); @@ -206,7 +207,12 @@ class auth_ad extends auth_basic { // if this is the current user, warn him if( ($_SERVER['REMOTE_USER'] == $user) && ($timeleft <= $this->cnf['expirywarn'])){ - msg(sprintf($lang['authpwdexpire'],$timeleft)); + $msg = sprintf($lang['authpwdexpire'],$timeleft); + if($this->canDo('modPass')){ + $url = wl($ID,array('do'=>'profile')); + $msg .= ' <a href="'.$url.'">'.$lang['btn_profile'].'</a>'; + } + msg($msg); } } |