Hooks reference: check_password

Additional checks for password validation.
Warning: For security reasons, plugins should never keep password value (even in static or instance attributes)

Args details

  • $sPassword (String) : Password to be checked

Exceptions

  • AnwPluginInterruptionException : Throw this exception when the password is incorrect

Example

  1. function hook_check_password($sPassword)
  2. {
  3. //your code here...
  4. if (/* special case *//*) throw new AnwPluginInterruptionException();
  5. }
  • en
Last edited on 04/05/2009 14:25:35
Powered by Anwiki • 0.04 sec • 2.03 MB