diff --git a/cas_server/auth.py b/cas_server/auth.py index f8c9950..4d847b8 100644 --- a/cas_server/auth.py +++ b/cas_server/auth.py @@ -80,7 +80,10 @@ class MysqlAuthUser(DummyAuthUser): salt = '$'.join(self.user["password"].split('$', 3)[:-1]) return crypt.crypt(password, salt) == self.user["password"] else: - return crypt.crypt(password, self.user["password"][:2]) == self.user["password"] + return crypt.crypt( + password, + self.user["password"][:2] + ) == self.user["password"] def attributs(self): """return a dict of user attributes""" diff --git a/cas_server/forms.py b/cas_server/forms.py index 5cf2ba6..7a1f627 100644 --- a/cas_server/forms.py +++ b/cas_server/forms.py @@ -9,7 +9,7 @@ # # (c) 2015 Valentin Samir """forms for the app""" -import cas_server.default_settings +from . import default_settings from django import forms from django.conf import settings diff --git a/cas_server/models.py b/cas_server/models.py index 3f69029..f401bdc 100644 --- a/cas_server/models.py +++ b/cas_server/models.py @@ -10,7 +10,7 @@ # # (c) 2015 Valentin Samir """models for the app""" -import cas_server.default_settings +from . import default_settings from django.conf import settings from django.db import models diff --git a/cas_server/views.py b/cas_server/views.py index 94208ec..9dd9bc6 100644 --- a/cas_server/views.py +++ b/cas_server/views.py @@ -10,7 +10,7 @@ # # (c) 2015 Valentin Samir """views for the app""" -import cas_server.default_settings +from . import default_settings from django.shortcuts import render, redirect from django.http import HttpResponse, HttpResponseRedirect