trigger sync After saving new password

master
alice 4 years ago
parent 28a1043bfa
commit 12462bec44

@ -374,9 +374,9 @@ def settings(request):
messages.error(request, _("Password and confirmation do not match")) messages.error(request, _("Password and confirmation do not match"))
else: else:
request.user.set_password(pw) request.user.set_password(pw)
django_lcore.sync_user(request.user.vpnuser)
messages.success(request, _("OK! Password changed.")) messages.success(request, _("OK! Password changed."))
request.user.save() request.user.save()
django_lcore.sync_user(request.user.vpnuser)
return redirect('lambdainst:account_settings') return redirect('lambdainst:account_settings')
elif action == 'export': elif action == 'export':

Loading…
Cancel
Save