From 4496e1d5099a63c4d81f04f26900fbe5853869df Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Thu, 22 Jun 2023 17:35:34 +0100 Subject: [PATCH] pwr: ensure internal pwr pin is deleted after use --- api.go | 1 + 1 file changed, 1 insertion(+) diff --git a/api.go b/api.go index 2aec453..53344eb 100644 --- a/api.go +++ b/api.go @@ -143,6 +143,7 @@ func (app *appContext) ResetSetPassword(gc *gin.Context) { respondBool(status, false, gc) return } + delete(app.internalPWRs, req.PIN) } else { resp, status, err := app.jf.ResetPassword(req.PIN) if status != 200 || err != nil || !resp.Success {