mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed Typos
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user