1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-21 11:27:18 +00:00

force change password after batch add user

This commit is contained in:
lian
2017-02-07 17:45:36 +08:00
parent bd054efe7f
commit 287257dd7c
2 changed files with 56 additions and 0 deletions

View File

@@ -1868,6 +1868,9 @@ def batch_add_user(request):
User.objects.create_user(username, password, is_staff=False,
is_active=True)
if config.FORCE_PASSWORD_CHANGE:
UserOptions.objects.set_force_passwd_change(username)
if nickname:
Profile.objects.add_or_update(username, nickname, '')
if department: