equal
deleted
inserted
replaced
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. |