1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 11:55:56 +00:00

fix single user mode login failing because of isdefaultpassword()

This commit is contained in:
Andrew Dolgov
2017-12-14 19:27:55 +03:00
parent 072a348f93
commit 9390ddeae2

View File

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