Example #1
0
 def default_key(cls, nbytes=None):
     return token_hex(nbytes)
Example #2
0
 def set_email_token(self, nbytes=None):
     self.email_token = token_hex(nbytes)
Example #3
0
 def set_reset_password_token(self, nbytes=None):
     self.reset_password_token = token_hex(nbytes)
     self.reset_password_token_expire = (
         datetime.datetime.now() + datetime.timedelta(seconds=config.getint(
             'session', 'web_timeout_reset', default=24 * 60 * 60)))
Example #4
0
 def default_email_token(cls, nbytes=None):
     return token_hex(nbytes)