remove flag setting invalid pin entry

This commit is contained in:
Carlosokumu 2024-09-03 15:13:55 +03:00
parent 94f12edeaf
commit a07a8703f4
Signed by: carlos
GPG Key ID: 7BD6BC8160A5C953

View File

@ -426,9 +426,6 @@ func (h *Handlers) Authorize(ctx context.Context, sym string, input []byte) (res
res.FlagReset = append(res.FlagReset, flags["flag_account_authorized"])
return res, nil
}
} else {
res.FlagSet = append(res.FlagSet, flags["flag_incorrect_pin"])
res.FlagReset = append(res.FlagReset, flags["flag_account_authorized"])
}
} else if errors.Is(err, gdbm.ErrItemNotFound) {
return res, err