Display a password prompt when an unprotected pad is not found on the server

This commit is contained in:
yflory
2019-10-21 17:12:36 +02:00
parent 302030e1ee
commit 7d7a692383
4 changed files with 96 additions and 71 deletions

View File

@@ -95,9 +95,7 @@ define([
if (msg.content.isTemplate) {
common.sessionStorage.put(Constants.newPadPathKey, ['template'], waitFor());
}
if (msg.content.password) {
common.sessionStorage.put('newPadPassword', msg.content.password, waitFor());
}
common.sessionStorage.put('newPadPassword', msg.content.password || '', waitFor());
}).nThen(function () {
todo();
});