remove flag setting invalid pin entry

This commit is contained in:
2024-09-03 15:13:55 +03:00
parent 94f12edeaf
commit a07a8703f4

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"]) res.FlagReset = append(res.FlagReset, flags["flag_account_authorized"])
return res, nil 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) { } else if errors.Is(err, gdbm.ErrItemNotFound) {
return res, err return res, err