mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
Added encrypted backup support to web gui.
This commit is contained in:
parent
061f9bfdd5
commit
1031fe1425
2 changed files with 3 additions and 1 deletions
|
|
@ -14,6 +14,7 @@
|
||||||
<p>
|
<p>
|
||||||
<form action="/cgi-bin/luci-backup" method="post" style="display:inline">
|
<form action="/cgi-bin/luci-backup" method="post" style="display:inline">
|
||||||
<input type="hidden" name="sessionid" />
|
<input type="hidden" name="sessionid" />
|
||||||
|
<input type="hidden" name="password" />
|
||||||
<input class="btn btn-primary" type="button" id="btn_backup" value="<%:Generate archive%>" />
|
<input class="btn btn-primary" type="button" id="btn_backup" value="<%:Generate archive%>" />
|
||||||
</form>
|
</form>
|
||||||
<input class="btn btn-danger" type="button" id="btn_reset" value="<%:Perform reset%>" />
|
<input class="btn btn-danger" type="button" id="btn_reset" value="<%:Perform reset%>" />
|
||||||
|
|
|
||||||
|
|
@ -249,8 +249,9 @@ L.ui.view.extend({
|
||||||
|
|
||||||
form.find('[name=sessionid]').val(L.globals.sid);
|
form.find('[name=sessionid]').val(L.globals.sid);
|
||||||
form.find('[name=password]').val(password);
|
form.find('[name=password]').val(password);
|
||||||
form.find('[name=password2]').val(password2);
|
|
||||||
form.submit();
|
form.submit();
|
||||||
|
|
||||||
|
L.ui.dialog(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue