Emailed account links can now be password-reset links, and each reset link records which administrator issued it.
What has changed on this site, in its database and in the scripts behind it, newest first. Older history is being filled in as it is reconstructed, and each entry says whether it was recorded at the time or rebuilt later.
Showing entries for table user_tokens. Show everything
Emailed account links can now be password-reset links, and each reset link records which administrator issued it.
User records can now note when an account's email address was confirmed by link, and when and by whom the account was approved. A new table holds the single-use confirmation links sent by email, storing only a fingerprint of each link, never the link itself.
Whether someone may sign in is still decided only by the account's status; confirmation and approval are recorded as events, never filled in after the fact, so existing accounts show them as not yet happened. Email addresses must now be stored in one consistent form (trimmed, lowercase, plain letters), which keeps two different addresses from being treated as the same one. A confirmation link only proves the address it was sent to.