Commit ba9f27e3 authored by Enrico Zini's avatar Enrico Zini

py3 cleanups

parent a004fbae
# coding: utf-8
# nm.debian.org website authentication
#
# Copyright (C) 2012--2014 Enrico Zini <enrico@debian.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from django import http
from django.shortcuts import redirect
import backend.models as bmodels
......
# coding: utf8
from django.conf import settings
class AuthMiddleware(object):
class AuthMiddleware:
def process_request(self, request):
request.sso_username = None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment