This commit is contained in:
1 parent
ac60d1daef
commit
1a2b6e5b41
3 files changed
+18
-1
No files matched your search
@@ -30,6 +30,13 @@ func StoreSecret(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
if input.SafeId == 0 && len(input.SafeName) == 0 {
|
||||
errString := "StoreSecret no safe specified\n"
|
||||
log.Print(errString)
|
||||
c.JSON(http.StatusBadRequest, gin.H{"error": errString})
|
||||
return
|
||||
}
|
||||
|
||||
// Don't log this since it contains plaintext secrets
|
||||
//log.Printf("StoreSecret received JSON input '%v'\n", input)
|
||||
|
||||
|
||||
Reference in new issue
Block a user