def set_password(self, password): """Salt and hashes the password.""" self.password = md5crypt(password, gen_salt())
def set_password(self, password): self.password = md5crypt(password, gen_salt())