fix RoleId in secrets table
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-08 15:45:08 +11:00
parent ac60d1daef
commit 1a2b6e5b41
3 changed files with 18 additions and 1 deletions

View File

@@ -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)