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

@@ -217,6 +217,8 @@ _Released 2025-07-29_
preserve and update your `postfix` configuration.
- The `SOCIAL_AUTH_SYNC_CUSTOM_ATTRS_DICT` setting has been removed.
It was deprecated in favor of `SOCIAL_AUTH_SYNC_ATTRS_DICT` in 10.0.
- The obscure `REALM_CREATION_LINK_VALIDITY_DAYS` setting was renamed to
`CAN_CREATE_REALM_LINK_VALIDITY_DAYS`.
## Zulip Server 10.x series

View File

@@ -32,7 +32,7 @@ The above command will output a URL which can be used for creating a
new realm and an administrator user for that realm. The link expires
after the creation of the realm. The link also expires if not used
within 7 days. The expiration period can be changed by modifying
`REALM_CREATION_LINK_VALIDITY_DAYS` in settings.py.
`CAN_CREATE_REALM_LINK_VALIDITY_DAYS` in settings.py.
## Subdomains