Beispiel #1
0
 def reset_token(self, token):
     DataToken.get(token).delete()
Beispiel #2
0
 def check_token(self, token):
     """Check that the token is valid"""
     t = DataToken.get(token)
     return t and datetime.now() <= (t.date + self.expiration_delay)
Beispiel #3
0
 def reset_token(self, token):
     DataToken.get(token).delete()
Beispiel #4
0
 def check_token(self, token):
     """Check that the token is valid"""
     t = DataToken.get(token)
     return t and datetime.now() <= (t.date + self.expiration_delay)
Beispiel #5
0
 def check_token(self, token):
     """Check that the token is valid"""
     t = DataToken.get(token)
     return t and datetime.now() <= t.date
Beispiel #6
0
 def check_token(self, token):
     """Check that the token is valid"""
     t = DataToken.get(token)
     return t and datetime.now() <= t.date