Beispiel #1
0
 def set_random_password(self):
     password = get_random_string(12)
     self.update_password(password)
     self.save()
     return password
Beispiel #2
0
 def set_random_password(self):
     password = get_random_string(12)
     self.update_password(password)
     self.save()
     return password
Beispiel #3
0
 def update_password(self, string):
     '''Update our password to a new one whilst hashing it.'''
     self.salt = get_random_string(12)
     self.password = hasher(self.salt + string)
Beispiel #4
0
 def update_password(self, string):
     '''Update our password to a new one whilst hashing it.'''
     self.salt = get_random_string(12)
     self.password = hasher(self.salt+string)