Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

providing request the argument to the calls to the stock Django authenticate method

Rohan Karanae207afdfa09
diff --git a/wger/core/views/user.py b/wger/core/views/user.py
index 061292ab0..c6ebe3cdf 100644
--- a/wger/core/views/user.py
+++ b/wger/core/views/user.py
@@ -282,7 +282,7 @@ def registration(request):
user.userprofile.save()
- user = authenticate(username=username, password=password)
+ user = authenticate(request=request, username=username, password=password)
django_login(request, user)
messages.success(request, _('You were successfully registered'))
return HttpResponseRedirect(reverse('core:dashboard'))