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"
|
vaultPath := VaultAddress + "/v1/sys/wrapping/unwrap"
|
||||||
|
|
||||||
|
Data = ""
|
||||||
// fmt.Fprintln(w, r.URL.RawQuery)
|
// fmt.Fprintln(w, r.URL.RawQuery)
|
||||||
// log.Println(w, r.URL.RawQuery)
|
// log.Println(w, r.URL.RawQuery)
|
||||||
if Debug {
|
if Debug {
|
||||||
|
@ -196,7 +197,7 @@ func getDataFromHtmlForm(w http.ResponseWriter, r *http.Request) {
|
||||||
func genPassword(w http.ResponseWriter, r *http.Request) {
|
func genPassword(w http.ResponseWriter, r *http.Request) {
|
||||||
// params := mux.Vars(r)
|
// params := mux.Vars(r)
|
||||||
// passLength := params["passLength"]
|
// passLength := params["passLength"]
|
||||||
|
Data = ""
|
||||||
r.ParseForm()
|
r.ParseForm()
|
||||||
passLength := r.FormValue("passlength")
|
passLength := r.FormValue("passlength")
|
||||||
if Debug {
|
if Debug {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user