Skip to content

Commit

Permalink
Fix typo, change wording slightly (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSwain authored Nov 13, 2023
1 parent a6a239b commit f47d405
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/advanced.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ For example, to require a user to be a superuser:
class RequireSuperuser2FAMiddleware(BaseRequire2FAMiddleware):
def require_2fa(self, request):
# Superusers are require to have 2FA.
# Superusers are required to have 2FA.
return request.user.is_superuser
If the user doesn't have 2FA enabled they will be redirected to the 2FA
If the user doesn't have 2FA enabled, then they will be redirected to the 2FA
configuration page and will not be allowed to access (most) other pages.

0 comments on commit f47d405

Please sign in to comment.