Preparation to make the automatic authentication work (hopefully) reliable
authorMichael <heluecht@pirati.ca>
Sun, 7 Jan 2018 00:56:32 +0000 (00:56 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 7 Jan 2018 00:56:32 +0000 (00:56 +0000)
xmpp/xmpp.php

index e523c65..d933548 100644 (file)
@@ -152,7 +152,7 @@ function xmpp_converse(App $a)
        if (Config::get("xmpp", "central_userbase") && !PConfig::get(local_user(), "xmpp", "individual")) {
                $bosh_proxy = Config::get("xmpp", "bosh_proxy");
 
        if (Config::get("xmpp", "central_userbase") && !PConfig::get(local_user(), "xmpp", "individual")) {
                $bosh_proxy = Config::get("xmpp", "bosh_proxy");
 
-               $password = PConfig::get(local_user(), "xmpp", "password");
+               $password = PConfig::get(local_user(), "xmpp", "password", '', true);
 
                if ($password == "") {
                        $password = random_string(16);
 
                if ($password == "") {
                        $password = random_string(16);