forked from DGNum/gestiojeux
Remove useless files in auth app
This commit is contained in:
parent
02aaa79047
commit
497e83eca3
4 changed files with 0 additions and 47 deletions
|
@ -1,14 +0,0 @@
|
|||
from django_cas_ng.backends import CASBackend
|
||||
from .models import CasUser
|
||||
|
||||
|
||||
class GestioJeuxCASBackend(CASBackend):
|
||||
# Copied from the BOcal project
|
||||
# Partly from Robin Champenois's "ExperiENS". Thanks!
|
||||
def clean_username(self, username):
|
||||
return username.lower().strip()
|
||||
|
||||
def configure_user(self, user):
|
||||
casUser = CasUser(user=user)
|
||||
casUser.save()
|
||||
return user
|
|
@ -1,22 +0,0 @@
|
|||
# Generated by Django 3.1.2 on 2020-10-21 19:57
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
('auth', '0012_alter_user_first_name_max_length'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='CasUser',
|
||||
fields=[
|
||||
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to='auth.user')),
|
||||
],
|
||||
),
|
||||
]
|
|
@ -1,11 +0,0 @@
|
|||
from django.db import models
|
||||
from django.contrib.auth.models import User
|
||||
|
||||
|
||||
class CasUser(models.Model):
|
||||
''' Describes a Django user that was created through CAS '''
|
||||
|
||||
user = models.OneToOneField(
|
||||
User,
|
||||
on_delete=models.CASCADE,
|
||||
primary_key=True)
|
Loading…
Reference in a new issue