core: cleanup

This commit is contained in:
Jens Langhammer
2018-12-09 21:07:38 +01:00
parent e7f7a3127c
commit 0754b07765
6 changed files with 28 additions and 14 deletions

View File

@ -19,8 +19,6 @@ class AuthorizedServiceBackend(ModelBackend):
source_q, identifier=identifier
).select_related('user')[0]
except IndexError:
print('hmm')
return None
else:
print('a')
return access.user

View File

@ -1,17 +1,14 @@
"""Core OAauth Views"""
import base64
import hashlib
from logging import getLogger
from django.conf import settings
from django.contrib import messages
from django.contrib.auth import authenticate, get_user_model, login
from django.contrib.auth import authenticate, login
from django.contrib.auth.mixins import LoginRequiredMixin
from django.http import Http404
from django.shortcuts import get_object_or_404, redirect, render
from django.urls import reverse
from django.utils.encoding import force_text, smart_bytes
from django.utils.translation import ugettext as _
from django.views.generic import RedirectView, View