From 9390ddeae2ed814bb89c15742ee7296046609d1e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 14 Dec 2017 19:27:55 +0300 Subject: [PATCH] fix single user mode login failing because of isdefaultpassword() --- classes/pref/prefs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index 6d96b198..50d20490 100644 --- a/classes/pref/prefs.php +++ b/classes/pref/prefs.php @@ -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; }