summaryrefslogtreecommitdiff
path: root/inc/auth
diff options
context:
space:
mode:
authorAndreas Gohr <gohr@cosmocode.de>2011-11-07 14:49:29 +0100
committerAndreas Gohr <gohr@cosmocode.de>2011-11-07 14:53:08 +0100
commitb2117c6969fc31aa958f6019fd1e4e258f555db7 (patch)
tree5e67dd9b85b451699e7378d43b77126b4625a220 /inc/auth
parent9565908d97917c579e2ecb44a0b44a133df598fe (diff)
downloadrpg-b2117c6969fc31aa958f6019fd1e4e258f555db7.tar.gz
rpg-b2117c6969fc31aa958f6019fd1e4e258f555db7.tar.bz2
translatable AD expiry warning and link to update profile page
Diffstat (limited to 'inc/auth')
-rw-r--r--inc/auth/ad.class.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/inc/auth/ad.class.php b/inc/auth/ad.class.php
index 678a32047..cb59c5a48 100644
--- a/inc/auth/ad.class.php
+++ b/inc/auth/ad.class.php
@@ -26,7 +26,7 @@
* $conf['auth']['ad']['use_ssl'] = 1;
* $conf['auth']['ad']['use_tls'] = 1;
* $conf['auth']['ad']['debug'] = 1;
- * // warn user about expiring password in this mayn days in advance:
+ * // warn user about expiring password this many days in advance:
* $conf['auth']['ad']['expirywarn'] = 5;
*
* // get additional information to the userinfo array
@@ -148,6 +148,7 @@ class auth_ad extends auth_basic {
*/
function getUserData($user){
global $conf;
+ global $lang;
if(!$this->_init()) return false;
if($user == '') return array();
@@ -205,7 +206,7 @@ class auth_ad extends auth_basic {
// if this is the current user, warn him
if( ($_SERVER['REMOTE_USER'] == $user) && ($timeleft <= $this->cnf['expirywarn'])){
- msg('Your password will expire in '.$timeleft.' days. You should change it.');
+ msg(sprintf($lang['authpwdexpire'],$timeleft));
}
}