mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-06-26 07:02:51 +00:00
parent
b5629ccc82
commit
45c45e098f
@ -103,8 +103,11 @@ exports.startup = function() {
|
|||||||
serviceName: "Set a new password for this TiddlyWiki",
|
serviceName: "Set a new password for this TiddlyWiki",
|
||||||
noUserName: true,
|
noUserName: true,
|
||||||
submitText: "Set password",
|
submitText: "Set password",
|
||||||
|
canCancel: true,
|
||||||
callback: function(data) {
|
callback: function(data) {
|
||||||
|
if(data) {
|
||||||
$tw.crypto.setPassword(data.password);
|
$tw.crypto.setPassword(data.password);
|
||||||
|
}
|
||||||
return true; // Get rid of the password prompt
|
return true; // Get rid of the password prompt
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user