This will work

pull/660/head
Michael 2018-07-22 06:50:34 +00:00
parent 1f9c353bae
commit a10a8361a7
1 changed files with 1 additions and 1 deletions

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);
}