Exemple #1
0
 def reset_token(self, token):
     DataToken.get(token).delete()
Exemple #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)
Exemple #3
0
 def reset_token(self, token):
     DataToken.get(token).delete()
Exemple #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)
Exemple #5
0
 def check_token(self, token):
     """Check that the token is valid"""
     t = DataToken.get(token)
     return t and datetime.now() <= t.date
Exemple #6
0
 def check_token(self, token):
     """Check that the token is valid"""
     t = DataToken.get(token)
     return t and datetime.now() <= t.date