progres
This commit is contained in:
@@ -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 {
|
||||
|
@@ -43,6 +43,7 @@ func StoreSecret(c *gin.Context) {
|
||||
|
||||
// Encrypt secret
|
||||
s.Secret = input.SecretValue
|
||||
s.EncryptSecret()
|
||||
|
||||
_, err = s.SaveSecret()
|
||||
|
||||
|
Reference in New Issue
Block a user