vault-wrap: Исправление показа данных из других сессий

This commit is contained in:
svkalinin 2024-07-11 10:41:34 +03:00
parent cb4aa3e23c
commit 9da7132bf1

View File

@ -168,6 +168,7 @@ func getDataFromHtmlForm(w http.ResponseWriter, r *http.Request) {
vaultPath := VaultAddress + "/v1/sys/wrapping/unwrap"
Data = ""
// fmt.Fprintln(w, r.URL.RawQuery)
// log.Println(w, r.URL.RawQuery)
if Debug {
@ -196,7 +197,7 @@ func getDataFromHtmlForm(w http.ResponseWriter, r *http.Request) {
func genPassword(w http.ResponseWriter, r *http.Request) {
// params := mux.Vars(r)
// passLength := params["passLength"]
Data = ""
r.ParseForm()
passLength := r.FormValue("passlength")
if Debug {