mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-16 03:25:57 +00:00
isdefaultpassword: use method_exists() to check for check_password
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user