verify unlock key against hash on disk
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-09 21:22:16 +11:00
parent 1bb983b4b9
commit dc9ffceb3e
3 changed files with 72 additions and 12 deletions

View File

@@ -12,8 +12,7 @@ type UnlockInput struct {
SecretKey string `json:"secretKey"`
}
// receive secret key and store it using the Key model
// Unlock receives secret key and store it in memory
func Unlock(c *gin.Context) {
var input UnlockInput