Пример #1
0
def password_token(username):
    """ Returns encrypted token
        Input: username
        Output: encrypted token returned by encrypt() function.
    """
    return simple_encrypt.encrypt(username + ",,," +
                                  str(datetime.datetime.now()))
Пример #2
0
 def confirmation_token(self):
     return simple_encrypt.encrypt(self.email)
Пример #3
0
def password_token(username):
    return simple_encrypt.encrypt(username + ",,," +
                                  str(datetime.datetime.now()))