ORIONIS API REFERENCE

THE ORIONIS API

Build with clarity.

Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.

class documentation

class RegisterController(BaseController): (source)

View In Hierarchy

Undocumented

Async Method __resolveUser Resolve the account referenced by an encrypted verification link.
Async Method index Return the registration page response.
Async Method register Handle the registration form submission.
Async Method sendVerificationEmail Send a verification email to the newly registered user.
Async Method verifyEmail Activate the account addressed by a verification link.
Constant REGISTER_REDIRECT_PATH Undocumented
Constant REGISTER_VIEW_NAME Undocumented
Constant VERIFY_PARAM_NAME Undocumented
Constant VERIFY_VIEW_NAME Undocumented
async def __resolveUser(self, encrypted_id: str | None) -> User | None: (source)

Resolve the account referenced by an encrypted verification link.

Parameters
encrypted_id:str | NoneEncrypted identifier extracted from the verification link.
Returns
User | NoneMatching user, or None when the link is absent, forged or points to an account that no longer exists.
async def index(self) -> HttpResponse: (source)

Return the registration page response.

Returns
HttpResponseRendered response for the registration page.
async def register(self, payload: RegisterSchema, request: Request) -> HttpResponse: (source)

Handle the registration form submission.

Parameters
payload:RegisterSchemaIncoming request carrying the submitted account data.
request:RequestCurrent request and its trusted execution context.
Returns
HttpResponseRedirect to login after the account is created.
async def sendVerificationEmail(self, base_url: str, user: User) -> MailResult: (source)

Send a verification email to the newly registered user.

Parameters
base_url:strThe base URL of the application, used to construct the verification link.
user:UserThe user to whom the verification email will be sent.
Returns
MailResultThe result of the email sending operation.
async def verifyEmail(self, request: Request) -> HttpResponse: (source)

Activate the account addressed by a verification link.

Parameters
request:RequestIncoming request carrying the encrypted identifier in its query string.
Returns
HttpResponseRendered outcome page reporting the verification state.
REGISTER_REDIRECT_PATH: str = (source)

Undocumented

Value
'/login'
REGISTER_VIEW_NAME: str = (source)

Undocumented

Value
'auth.register'
VERIFY_PARAM_NAME: str = (source)

Undocumented

Value
'id'
VERIFY_VIEW_NAME: str = (source)

Undocumented

Value
'auth.verify-email'