vault-wrap: Исправление показа данных из других сессий
This commit is contained in:
parent
cb4aa3e23c
commit
9da7132bf1
3
vault.go
3
vault.go
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user