This will work
parent
1f9c353bae
commit
a10a8361a7
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue