diff options
| author | Shulhan <ms@kilabit.info> | 2023-11-14 23:40:19 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-11-15 02:26:52 +0700 |
| commit | 130a9d1e7229bee3a82ffc5a831bd6e8a511dc9d (patch) | |
| tree | 94f051b6b404485e3490ab0e5eafd518c373a0cb /http_server.go | |
| parent | aced8dda50746fc349691f932ae32619688334d4 (diff) | |
| download | awwan-130a9d1e7229bee3a82ffc5a831bd6e8a511dc9d.tar.xz | |
_wui: implement Encrypt
In the right side of Save button we now have a button Encrypt that
allow user to Encrypt openend file.
This require the workspace has been setup with private key
(.ssh/awwan.key) and pass file (.ssh/awwan.pass).
Diffstat (limited to 'http_server.go')
| -rw-r--r-- | http_server.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/http_server.go b/http_server.go index 1c9a4ad..b823204 100644 --- a/http_server.go +++ b/http_server.go @@ -234,7 +234,7 @@ func (httpd *httpServer) Encrypt(epr *libhttp.EndpointRequest) (resb []byte, err return nil, httpRes } - node.Parent.Update(nil, -1) + node.Parent.Update(nil, 0) encRes.PathVault, _ = strings.CutPrefix(encRes.PathVault, httpd.aww.BaseDir) |
