1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-06-20 15:34:08 +00:00
TiddlyWiki5/core/modules/commands/clearpassword.js
2023-07-07 13:15:03 +02:00

31 lines
539 B
JavaScript

/*\
title: $:/core/modules/commands/clearpassword.js
type: application/javascript
module-type: command
Clear password for crypto operations
\*/
/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";
exports.info = {
name: "clearpassword",
synchronous: true
};
var Command = function(params,commander,callback) {
this.params = params;
this.commander = commander;
this.callback = callback;
};
Command.prototype.execute = function() {
$tw.crypto.setPassword(null);
return null;
};
exports.Command = Command;