1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-20 02:48:51 +00:00

Clear token when change user password

This commit is contained in:
zhengxie
2015-04-29 10:24:29 +08:00
parent 16ec8ed587
commit 3edf280898
2 changed files with 3 additions and 1 deletions

View File

@@ -829,6 +829,7 @@ def user_reset(request, user_id):
new_password = INIT_PASSWD
user.set_password(new_password)
user.save()
clear_token(user.username)
if IS_EMAIL_CONFIGURED:
if SEND_EMAIL_ON_RESETTING_USER_PASSWD: