This will work

This commit is contained in:
Michael 2018-07-22 06:50:34 +00:00
parent 1f9c353bae
commit a10a8361a7

View File

@ -94,7 +94,7 @@ function xmpp_addon_settings(App $a, &$s)
function xmpp_login()
{
if (isset($_SESSION["allow_api"]) && !$_SESSION["allow_api"]) {
if (empty($_SESSION["allow_api"])) {
$password = random_string(16);
PConfig::set(local_user(), "xmpp", "password", $password);
}