mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 00:23:49 +00:00
confirmation: Remove Realm from ConfirmationObjT.
We have officially eliminated Realm from ConfirmationObjT and replaced it with RealmReactivationStatus. Signed-off-by: Zixuan James Li <p359101898@gmail.com>
This commit is contained in:
committed by
Tim Abbott
parent
d1acd67897
commit
b41f9d9633
@@ -59,7 +59,6 @@ ConfirmationObjT = Union[
|
|||||||
PreregistrationUser,
|
PreregistrationUser,
|
||||||
EmailChangeStatus,
|
EmailChangeStatus,
|
||||||
UserProfile,
|
UserProfile,
|
||||||
Realm,
|
|
||||||
RealmReactivationStatus,
|
RealmReactivationStatus,
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -120,11 +119,7 @@ def create_confirmation_link(
|
|||||||
# determined by the confirmation_type - its main purpose is for use
|
# determined by the confirmation_type - its main purpose is for use
|
||||||
# in tests which may want to have control over the exact expiration time.
|
# in tests which may want to have control over the exact expiration time.
|
||||||
key = generate_key()
|
key = generate_key()
|
||||||
realm: Optional[Realm]
|
realm = obj.realm
|
||||||
if isinstance(obj, Realm):
|
|
||||||
realm = obj
|
|
||||||
else:
|
|
||||||
realm = obj.realm
|
|
||||||
|
|
||||||
current_time = timezone_now()
|
current_time = timezone_now()
|
||||||
expiry_date = None
|
expiry_date = None
|
||||||
|
|||||||
Reference in New Issue
Block a user