Add games reporting to archive2nps; Extra fix for last commit
This commit is contained in:
1 parent
9385dfc27e
commit
d76d911a82
2 files changed
+10
-6
No files matched your search
+3
-2
@@ -834,8 +834,9 @@ def api_authenticate(request, require_enabled=False):
|
||||
return Profile.objects.get(user=request.user).enabled
|
||||
|
||||
# Request might be made from the command line. Check the headers
|
||||
return django.contrib.auth.authenticate(
|
||||
username=request.POST['username'], password=request.POST['password']).enabled
|
||||
user = django.contrib.auth.authenticate(
|
||||
username=request.POST['username'], password=request.POST['password'])
|
||||
return Profile.objects.get(user=user).enabled
|
||||
|
||||
except Exception:
|
||||
import traceback
|
||||
|
||||
Reference in new issue
Block a user