diff options
author | Andrew Dolgov <[email protected]> | 2017-12-15 12:15:15 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-12-15 12:15:15 +0300 |
commit | d0cce0c7a431d886403632ef94add650363d4ef6 (patch) | |
tree | 958b91a98f3447b55f15dee6ac8b5ef3528fc6b5 /classes/pref/prefs.php | |
parent | 0f05147531cb82ed3c6d298be9b3eca63192c81f (diff) |
isdefaultpassword: use method_exists() to check for check_password
Diffstat (limited to 'classes/pref/prefs.php')
-rw-r--r-- | classes/pref/prefs.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index fca67d0a6..fac4b941b 100644 --- a/classes/pref/prefs.php +++ b/classes/pref/prefs.php @@ -922,7 +922,10 @@ class Pref_Prefs extends Handler_Protected { static function isdefaultpassword() { $authenticator = PluginHost::getInstance()->get_plugin($_SESSION["auth_module"]); - if ($authenticator && function_exists($authenticator->check_password) && $authenticator->check_password($_SESSION["uid"], "password")) { + if ($authenticator && + method_exists($authenticator, "check_password") && + $authenticator->check_password($_SESSION["uid"], "password")) { + return true; } |