]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix single user mode login failing because of isdefaultpassword()
authorAndrew Dolgov <noreply@fakecake.org>
Thu, 14 Dec 2017 16:27:55 +0000 (19:27 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Thu, 14 Dec 2017 16:27:55 +0000 (19:27 +0300)
classes/pref/prefs.php

index 6d96b198dea52da085c780cd61edc947f2a994c8..50d20490a1a6cf96e7eff1a256c11150d0d8b33d 100644 (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;
                }