summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-12-14 19:27:55 +0300
committerAndrew Dolgov <[email protected]>2017-12-14 19:27:55 +0300
commit9390ddeae2ed814bb89c15742ee7296046609d1e (patch)
treec64c497e44269fbb348c424608a5e50efaaad83a /classes
parent072a348f930dc24a8f57df5cb63ab43dc68edd87 (diff)
fix single user mode login failing because of isdefaultpassword()
Diffstat (limited to 'classes')
-rw-r--r--classes/pref/prefs.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php
index 6d96b198d..50d20490a 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;
}