User Story #107
Updated by Bricklou 22 days ago
As a user, I want to update my account information, so that my profile stays up-to-date.
Acceptance criteria:
* [x] I can change my username. It must be unique and follow the username rules, and I am told when it is taken or invalid.
* [x] I can ask to change my email address by giving the new address and my current password.
* [x] If my account has an authenticator app, I also give its code.
* [x] My current address stays in use until the change is finished. The page shows the change as pending, says what it still waits for, and lets me cancel it.
* [x] Without an authenticator app, both addresses must agree: the new one confirms it is mine and the current one approves the change, in any order. With an authenticator app, the new address alone confirms.
* [x] My current address is warned of every request, with a link to call the change off.
* [x] When the change applies, the new address counts as verified and every session of my account ends, so I sign in again.
* [x] The links in the mails work once and expire.
* [x] The mails read well on a phone.
Known limit: if I can no longer open my current address, an administrator changes my email.