# Forget a reset link once its code is gone, share an in-flight request, close only a dialog on top · dara/icarus

[View on GitCafe](https://git.cafe/dara/icarus/commit/5e2801f48ef71515fe736898174e0200f1afaaae)

Repository: [dara/icarus](https://git.cafe/dara/icarus)

Visibility: public

Requested revision: 5e2801f48ef71515fe736898174e0200f1afaaae

Requested commit: 5e2801f48ef71515fe736898174e0200f1afaaae

Commit: 5e2801f48ef71515fe736898174e0200f1afaaae

Tree: af4cb7d65ee91ab682548fd2a791dbd80030c6e0

Author: Dara Adedeji

Committer: Dara Adedeji

## Message

```
Forget a reset link once its code is gone, share an in-flight request, close only a dialog on top

- Any sign-in, sign-out or Discord start forgets the pending reset link:
  each spends or replaces the code the link needs, so a request after
  one of them goes out instead of pointing at a dead link.
- A request for the same address while one is out shares its answer,
  and the form ignores Enter while busy, so a second request can't
  replace the first one's code.
- The dialog closes itself only while it is the top route; a sign-in
  landing after it was dismissed no longer closes the page beneath.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

```

## Parents

- [d3dc0ddc275022e9efd638201684391cd6a18e1a](https://git.cafe/dara/icarus/commit/d3dc0ddc275022e9efd638201684391cd6a18e1a?format=markdown)

[Source at this commit](https://git.cafe/dara/icarus/tree/5e2801f48ef71515fe736898174e0200f1afaaae?format=markdown)
