confirmation: Replace RealmCreationKey - use Confirmation instead.

Fixes #20028.

There's no reason to have a special `RealmCreationKey` class - the
`Confirmation` system already does this job.

This is somewhat complicated by the need to write a migration for
`RealmCreationKey`->`Confirmation` for pre-existing, valid objects, to
avoid breaking realm creation links that haven't been used yet.
This commit is contained in:
Mateusz Mandera
2025-07-06 02:13:02 +08:00
committed by Tim Abbott
parent 072f234269
commit 40b1f6eb4e
13 changed files with 238 additions and 77 deletions

View File

@@ -698,7 +698,7 @@ i18n_urls = [
# Realm creation
path("json/antispam_challenge", get_challenge),
path("new/", create_realm),
path("new/<creation_key>", create_realm, name="create_realm"),
path("new/<confirmation_key>", create_realm, name="create_realm"),
# Realm reactivation
path("reactivate/", realm_reactivation, name="realm_reactivation"),
path("reactivate/<confirmation_key>", realm_reactivation_get, name="realm_reactivation_get"),