Skip to content

Commit

Permalink
Merge pull request #7 from saaltech/feature/webapp-branding
Browse files Browse the repository at this point in the history
stopped the redisplaying of the loginDialog box
  • Loading branch information
neehalsaal committed Jun 28, 2020
2 parents f243717 + caea780 commit 6108fc6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions modules/UI/authentication/AuthHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ const logger = Logger.getLogger(__filename);
let externalAuthWindow;
let authRequiredDialog;

let loginDialog;

const isTokenAuthEnabled
= typeof config.tokenAuthUrl === 'string' && config.tokenAuthUrl.length;
const getTokenAuthUrl
Expand Down Expand Up @@ -205,10 +207,11 @@ function doXmppAuth(room, lockPassword) {
}

function oldLoginFlow(room, lockPassword) {
const loginDialog = LoginDialog.showAuthDialog(
if(loginDialog) {
return;
}
loginDialog = LoginDialog.showAuthDialog(
/* successCallback */ (id, password) => {
hostUsername = id;
hostPassword = password;
room.authenticateAndUpgradeRole({
id,
password,
Expand Down

0 comments on commit 6108fc6

Please sign in to comment.