Changed redirect to dashboard after changing password.
This commit is contained in:
parent
e50abbbf03
commit
b705df8c5f
@ -477,7 +477,7 @@ def user_settings_password(request):
|
|||||||
if form.is_valid():
|
if form.is_valid():
|
||||||
form.save()
|
form.save()
|
||||||
messages.success(request, _('Password successfully changed.'))
|
messages.success(request, _('Password successfully changed.'))
|
||||||
return redirect(reverse('user_settings'))
|
return redirect(reverse('dashboard'))
|
||||||
else:
|
else:
|
||||||
messages.error(request, _('Please check the form for errors.'))
|
messages.error(request, _('Please check the form for errors.'))
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user