Fixed Typos

This commit is contained in:
Ahmad
2024-05-23 12:22:41 +05:00
committed by GitHub
parent 301920747d
commit 5c30695d66
18 changed files with 23 additions and 23 deletions

View File

@@ -37,8 +37,8 @@ def __handle_mfa_validation_request(
mfa_method: str, user_mfa_auths: dict, form_data: dict
) -> None:
"""
An internal utlity function to execute mfa.validate(...) method in case, it
matched the following conditions:
An internal utility function to execute mfa.validate(...) method in case,
it matched the following conditions:
1. Method specified is a valid and in the supported methods list.
2. User has registered for this auth method.
@@ -172,7 +172,7 @@ def _mfa_registration_view(
if form_data[mfa.name] == 'SETUP':
if supported_mfa['registered'] is True:
flash(_("'{}' is already registerd'").format(mfa.label),
flash(_("'{}' is already registered'").format(mfa.label),
MessageType.SUCCESS)
return None
@@ -238,7 +238,7 @@ def __handle_registration_view_for_post_method(
_next_url (str) : Redirect to which url, when clicked on the
'continue' button on the registration page.
_mfa_auths (dict): A dict object returned by the method -
'mfa_suppored_methods'.
'mfa_supported_methods'.
Returns:
(Union[str, None], Union[Response, None], Union[dict, None]):
@@ -289,7 +289,7 @@ def registration_view() -> Response:
A url end-point to register/deregister an authentication method.
It supports two HTTP methods:
* GET : Generate a view listing all the suppoted list with 'Setup',
* GET : Generate a view listing all the supported list with 'Setup',
or 'Delete' buttons. If user has registered for the auth method, it
will render a 'Delete' button next to it, and 'Setup' button
otherwise.