diff options
author | Craig Andrews <candrews@integralblue.com> | 2010-02-26 15:50:51 -0500 |
---|---|---|
committer | Craig Andrews <candrews@integralblue.com> | 2010-02-26 15:51:25 -0500 |
commit | 74bcc6929db15b18b761564232a1cb674ffbdce2 (patch) | |
tree | 07f27359380926df8073afd3b75d586a72cd9ed2 /plugins/LdapAuthentication/LdapAuthenticationPlugin.php | |
parent | 410cd524344e632bbb876578e1d816511095a55c (diff) |
Show messaging on the login and registration forms informing users that they may use their LDAP credentials
Diffstat (limited to 'plugins/LdapAuthentication/LdapAuthenticationPlugin.php')
-rw-r--r-- | plugins/LdapAuthentication/LdapAuthenticationPlugin.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/plugins/LdapAuthentication/LdapAuthenticationPlugin.php b/plugins/LdapAuthentication/LdapAuthenticationPlugin.php index 1b5dc92e3..d6a945f49 100644 --- a/plugins/LdapAuthentication/LdapAuthenticationPlugin.php +++ b/plugins/LdapAuthentication/LdapAuthenticationPlugin.php @@ -76,6 +76,32 @@ class LdapAuthenticationPlugin extends AuthenticationPlugin return false; } } + + function onEndShowPageNotice($action) + { + $name = $action->trimmed('action'); + $instr = false; + + switch ($name) + { + case 'register': + if($this->autoregistration) { + $instr = 'Have an LDAP account? Use your standard username and password.'; + } + break; + case 'login': + $instr = 'Have an LDAP account? Use your standard username and password.'; + break; + default: + return true; + } + + if($instr) { + $output = common_markup_to_html($instr); + $action->raw($output); + } + return true; + } //---interface implementation---// |