From 75a9b72fc50b0122e196d526403d7f531d11ef1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1n=20Stibila?= Date: Thu, 8 Jun 2017 12:35:10 +0200 Subject: [PATCH] Fix - preffer mail address to login --- ajax/getSettings.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ajax/getSettings.php b/ajax/getSettings.php index d0c3191e..a96c2f4e 100644 --- a/ajax/getSettings.php +++ b/ajax/getSettings.php @@ -68,7 +68,9 @@ function validateBoolean($val) } if (validateBoolean($config->getAppValue('ojsxc', 'timeLimitedToken'))) { - $data['xmpp']['username'] = $currentUID; + if($data['xmpp']['username'] == null) { + $data['xmpp']['username'] = $currentUID; + } $jid = $data['xmpp']['username'] . '@' . $data['xmpp']['domain']; $expiry = time() + 60*60; $secret = $config->getAppValue('ojsxc', 'apiSecret');