|
|
@ -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':
|
|
|
|