PendingRegistrationService¶
- class PendingRegistrationService[source]¶
- confirm(json_body, *, token)[source]¶
Verify the email code and finalize the registration.
The user provides the verification code along with their desired username, name, and (optionally) password. If the username is already taken, the code is not consumed and the user can retry.
- Parameters:
json_body (
ConfirmPendingRegistrationData) – The body of the request. SeeConfirmPendingRegistrationDatafor information about the possible fields. You can provide this data as aConfirmPendingRegistrationDataor as a dictionary.token (
str) – The pending registration identifier.
- Returns:
A login response or quarantine status.
- Return type:
- create(json_body)[source]¶
Create a pending registration and send a verification code.
Only an email address is required. The account details (username, name, password) are provided when confirming the registration.
- Parameters:
json_body (
CreatePendingRegistrationData) – The body of the request. SeeCreatePendingRegistrationDatafor information about the possible fields. You can provide this data as aCreatePendingRegistrationDataor as a dictionary.- Returns:
An identifier for the pending registration.
- Return type: