def default_key(cls, nbytes=None): return token_hex(nbytes)
def set_email_token(self, nbytes=None): self.email_token = token_hex(nbytes)
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)))
def default_email_token(cls, nbytes=None): return token_hex(nbytes)