summaryrefslogtreecommitdiffhomepage
path: root/protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol')
-rw-r--r--protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js6
1 files changed, 0 insertions, 6 deletions
diff --git a/protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js b/protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js
index e06f07895f..387ada9003 100644
--- a/protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js
+++ b/protocols/luci-proto-wireguard/htdocs/luci-static/resources/protocol/wireguard.js
@@ -97,9 +97,6 @@ var cbiKeyPairGenerate = form.DummyValue.extend({
pub = this.section.getUIElement(section_id, 'public_key'),
map = this.map;
- if ((prv.getValue() || pub.getValue()) && !confirm(_('Do you want to replace the current keys?')))
- return;
-
return generateKey().then(function(keypair) {
prv.setValue(keypair.priv);
pub.setValue(keypair.pub);
@@ -610,9 +607,6 @@ return network.registerProtocol('wireguard', {
var psk = this.section.getUIElement(section_id, 'preshared_key'),
map = this.map;
- if (psk.getValue() && !confirm(_('Do you want to replace the current PSK?')))
- return;
-
return generatePsk().then(function(key) {
psk.setValue(key);
map.save(null, true);