Skip to content

Commit

Permalink
Captcha font
Browse files Browse the repository at this point in the history
  • Loading branch information
na-stewart committed Jun 24, 2024
1 parent e9c79d0 commit 5b1e107
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@
/sanic_security.egg-info/
.idea
/sanic_security/lib/
/captcha-font.ttf
/poetry.lock
Binary file added captcha-font.ttf
Binary file not shown.
4 changes: 2 additions & 2 deletions sanic_security/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,13 +524,13 @@ class AuthenticationSession(Session):
Used to authenticate and identify a client.
Attributes:
requires_second_factor (bool): Determines if session requires a second factor.
refresh_expiration_date (bool): Date and time the session can no longer be refreshed.
requires_second_factor (bool): Determines if session requires a second factor.
is_refresh (bool): Will only be true once when instantiated during refresh of expired session.
"""

requires_second_factor: bool = fields.BooleanField(default=False)
refresh_expiration_date: datetime.datetime = fields.DatetimeField(null=True)
requires_second_factor: bool = fields.BooleanField(default=False)
is_refresh: bool = False

def validate(self) -> None:
Expand Down

0 comments on commit 5b1e107

Please sign in to comment.