fix RoleId in secrets table
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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