Skip to content

Commit

Permalink
remove some prints
Browse files Browse the repository at this point in the history
  • Loading branch information
shreddedbacon committed Dec 6, 2018
1 parent bb9a591 commit ca73543
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions set_credentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ func SetCredentials(w http.ResponseWriter, r *http.Request) {
r.ParseForm()
value := strings.Join(r.Form["value"], "")
//create payload
fmt.Println(value)
var rawJson map[string]interface{}
json.Unmarshal([]byte(value), &rawJson)
setValue := SetCredentialStruct{
Expand Down Expand Up @@ -150,7 +149,6 @@ func SetCredentials(w http.ResponseWriter, r *http.Request) {
http.Redirect(w, r, "/", http.StatusSeeOther)
} else {
if stringInSlice(credType, []string{"password", "user", "certificate", "rsa", "ssh", "json", "value"}) {
fmt.Println(credType)
tmpl := template.Must(template.ParseFiles("templates/set/" + credType + ".html"))
tmpl.ExecuteTemplate(w, "base", nil)
} else {
Expand Down

0 comments on commit ca73543

Please sign in to comment.