Skip to content

Commit

Permalink
Merge pull request #24 from Stibila/master
Browse files Browse the repository at this point in the history
Fix - preffer mail address to login
  • Loading branch information
sualko authored Jun 20, 2017
2 parents 0cfcc94 + 75a9b72 commit f627aae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ajax/getSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit f627aae

Please sign in to comment.