pwr: ensure internal pwr pin is deleted after use

user-page
Harvey Tindall 1 year ago
parent 3b3f37365a
commit 4496e1d509
No known key found for this signature in database
GPG Key ID: BBC65952848FB1A2

@ -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 {

Loading…
Cancel
Save