mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-05 17:46:19 +00:00
e40a0c07b8
Importing an encrypted wiki ordinarily doesn’t place the password in the password vault on the basis that one ought to be able to import from a file without automatically inheriting its password. Now there’s a configuration option that can be used by the upgrade plugin to cause the password vault to be updated with any password entered by the user. The end result is that the user only needs to enter their password once.
26 lines
538 B
JavaScript
26 lines
538 B
JavaScript
/*\
|
|
title: $:/plugins/tiddlywiki/upgrade/config.js
|
|
type: application/javascript
|
|
module-type: startup
|
|
|
|
Startup module for configuring the upgrade plugin
|
|
|
|
\*/
|
|
(function(){
|
|
|
|
/*jslint node: true, browser: true */
|
|
/*global $tw: false */
|
|
"use strict";
|
|
|
|
// Export name and synchronous status
|
|
exports.name = "upgrade-config";
|
|
exports.before = ["startup"];
|
|
exports.synchronous = true;
|
|
|
|
exports.startup = function() {
|
|
// See $tw.utils.decryptStoreAreaInteractive() in $:/core/modules/utils/crypto.js
|
|
$tw.config.usePasswordVault = true;
|
|
};
|
|
|
|
})();
|