We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36c5a4b commit ddf2fb8Copy full SHA for ddf2fb8
2 files changed
selfservice/models.py
@@ -37,6 +37,7 @@ class ResetToken(db.Model):
37
used = Column(Boolean)
38
39
def is_expired(self) -> bool:
40
+ """Returns whether the Token is expired"""
41
return self.expires < datetime.datetime.now()
42
43
@@ -57,6 +58,7 @@ class RecoverySession(db.Model):
57
58
)
59
60
61
+ """Returns whether the RecoverySession is expired"""
62
63
64
selfservice/utilities/general.py
@@ -4,7 +4,6 @@
4
5
import smtplib
6
7
-import datetime
8
from email.mime.text import MIMEText
9
from email.utils import formatdate
10
from twilio.rest import Client
0 commit comments