progres
This commit is contained in:
1 parent
7184eba5f3
commit
b19aeeb30d
5 files changed
+46
-352
No files matched your search
@@ -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