Clears the password if user cancels password prompt.
Clears the password if user cancel attempt to enter password, as using one instance of locker for multiple attempts keeps the password.
This commit is contained in:
parent
12344ab486
commit
a449223b40
|
@ -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