This commit is contained in:
nathan committed 2023-04-01 16:16:07 +11:00
1 parent 7184eba5f3
commit b19aeeb30d
5 files changed
+46 -352

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ type RetrieveInput struct {
DeviceCategory string `json:"deviceCategory"`
}
func Retrieve(c *gin.Context) {
func RetrieveSecret(c *gin.Context) {
var input RetrieveInput
if err := c.ShouldBindJSON(&input); err != nil {
+1
View File
@@ -43,6 +43,7 @@ func StoreSecret(c *gin.Context) {
// Encrypt secret
s.Secret = input.SecretValue
s.EncryptSecret()
_, err = s.SaveSecret()