commit
531e3d2765
|
@ -357,6 +357,14 @@ class ConferenceConnector {
|
||||||
case ConferenceErrors.PASSWORD_REQUIRED:
|
case ConferenceErrors.PASSWORD_REQUIRED:
|
||||||
APP.UI.markRoomLocked(true);
|
APP.UI.markRoomLocked(true);
|
||||||
roomLocker.requirePassword().then(function () {
|
roomLocker.requirePassword().then(function () {
|
||||||
|
let pass = roomLocker.password;
|
||||||
|
// we received that password is required, but user is trying
|
||||||
|
// anyway to login without a password, mark room as not locked
|
||||||
|
// in case he succeeds (maybe someone removed the password
|
||||||
|
// meanwhile), if it is still locked another password required
|
||||||
|
// will be received and the room again will be marked as locked
|
||||||
|
if (!pass)
|
||||||
|
APP.UI.markRoomLocked(false);
|
||||||
room.join(roomLocker.password);
|
room.join(roomLocker.password);
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -185,6 +185,10 @@ export default function createRoomLocker (room) {
|
||||||
newPass => { password = newPass; }
|
newPass => { password = newPass; }
|
||||||
).catch(
|
).catch(
|
||||||
reason => {
|
reason => {
|
||||||
|
// user canceled, no pass was entered.
|
||||||
|
// clear, as if we use the same instance several times
|
||||||
|
// pass stays between attempts
|
||||||
|
password = null;
|
||||||
if (reason !== APP.UI.messageHandler.CANCEL)
|
if (reason !== APP.UI.messageHandler.CANCEL)
|
||||||
console.error(reason);
|
console.error(reason);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue