Merge branch 'master' of bcollet/tt-rss-fix-auth into master

master
fox 7 years ago committed by Gogs
commit fde50b4e63

@ -922,7 +922,7 @@ class Pref_Prefs extends Handler_Protected {
static function isdefaultpassword() { static function isdefaultpassword() {
$authenticator = PluginHost::getInstance()->get_plugin($_SESSION["auth_module"]); $authenticator = PluginHost::getInstance()->get_plugin($_SESSION["auth_module"]);
if ($authenticator && $authenticator->check_password($_SESSION["uid"], "password")) { if ($authenticator && function_exists($authenticator->check_password) $authenticator->check_password($_SESSION["uid"], "password")) {
return true; return true;
} }
@ -1125,4 +1125,4 @@ class Pref_Prefs extends Handler_Protected {
return ""; return "";
} }
} }

Loading…
Cancel
Save