some cosmetics
This commit is contained in:
parent
1fcb0a7110
commit
9a4c6b9d7a
@ -80,7 +80,10 @@ class MysqlAuthUser(DummyAuthUser):
|
|||||||
salt = '$'.join(self.user["password"].split('$', 3)[:-1])
|
salt = '$'.join(self.user["password"].split('$', 3)[:-1])
|
||||||
return crypt.crypt(password, salt) == self.user["password"]
|
return crypt.crypt(password, salt) == self.user["password"]
|
||||||
else:
|
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):
|
def attributs(self):
|
||||||
"""return a dict of user attributes"""
|
"""return a dict of user attributes"""
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
#
|
#
|
||||||
# (c) 2015 Valentin Samir
|
# (c) 2015 Valentin Samir
|
||||||
"""forms for the app"""
|
"""forms for the app"""
|
||||||
import cas_server.default_settings
|
from . import default_settings
|
||||||
|
|
||||||
from django import forms
|
from django import forms
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
#
|
#
|
||||||
# (c) 2015 Valentin Samir
|
# (c) 2015 Valentin Samir
|
||||||
"""models for the app"""
|
"""models for the app"""
|
||||||
import cas_server.default_settings
|
from . import default_settings
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.db import models
|
from django.db import models
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
#
|
#
|
||||||
# (c) 2015 Valentin Samir
|
# (c) 2015 Valentin Samir
|
||||||
"""views for the app"""
|
"""views for the app"""
|
||||||
import cas_server.default_settings
|
from . import default_settings
|
||||||
|
|
||||||
from django.shortcuts import render, redirect
|
from django.shortcuts import render, redirect
|
||||||
from django.http import HttpResponse, HttpResponseRedirect
|
from django.http import HttpResponse, HttpResponseRedirect
|
||||||
|
Loading…
Reference in New Issue
Block a user