reg/events.py
changeset 18 7dae32a2439b
parent 17 125b6fc8f20b
child 20 9354ef8119c6
equal deleted inserted replaced
17:125b6fc8f20b 18:7dae32a2439b
    73     """
    73     """
    74 
    74 
    75     new_password = gen_key(10)
    75     new_password = gen_key(10)
    76     user.set_password(new_password)
    76     user.set_password(new_password)
    77     user.save()
    77     user.save()
    78     print "The new password is", new_password
       
    79     return new_password
    78     return new_password
    80 
    79 
    81 def change_password(user, new_password):
    80 def change_password(user, new_password):
    82     """ for now just set the password and be done with it.
    81     """ for now just set the password and be done with it.
    83     later on, if we want to do something else also then we can add them here.
    82     later on, if we want to do something else also then we can add them here.