Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Fix RemovedInDjango21Warning for EmailAuthBackend

Scott Peshak7da76f3ec2e2
diff --git a/wger/utils/helpers.py b/wger/utils/helpers.py
index 14f11718f..8d0ef6625 100644
--- a/wger/utils/helpers.py
+++ b/wger/utils/helpers.py
@@ -41,7 +41,7 @@ logger = logging.getLogger(__name__)
class EmailAuthBackend(object):
- def authenticate(self, username=None, password=None):
+ def authenticate(self, request, username=None, password=None):
try:
user = User.objects.get(email=username)
if user.check_password(password):