Commit 2d797128 authored by Gabriel Detraz's avatar Gabriel Detraz
Browse files

Migrations pour l'app validation

parent f9b52e62
......@@ -4,7 +4,6 @@ from django.conf.urls import include, url
from intranet import settings
import django.contrib.auth.views
from django.views.decorators.debug import sensitive_post_parameters
from django_cas_ng.views import login, logout
from intranet.views import accueil, surlogin, surlogout
import bw_comp
......@@ -15,6 +14,7 @@ if settings.CAS_ENABLED:
from django_cas_ng.signals import cas_user_authenticated
from intranet.login import post_cas_login
from django_cas_ng.views import login, logout
login_url = url(r'^login$', login, name="login")
logout_url = url(r'^logout$', logout, name="logout")
......@@ -22,7 +22,7 @@ else:
login_view = sensitive_post_parameters('password')(login_view)
login_url = url('^login', login_view, {'template_name': 'login.html'}, name="login")
#login_url = url('^login', protect(django.contrib.auth.views.login), {'template_name': 'login.html'}, name="login")
logout_url = url('^logout', 'django.contrib.auth.views.logout_then_login', name ="logout")
logout_url = url('^logout', django.contrib.auth.views.logout_then_login, name ="logout")
urlpatterns = [
# Les pages existantes
# -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-06-25 13:10
from __future__ import unicode_literals
from django.db import migrations, models
import validation.models
class Migration(migrations.Migration):
initial = True
dependencies = [
operations = [
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('view_name', models.CharField(max_length=255)),
('secret', models.CharField(default=validation.models._generate_secret, max_length=64)),
('created', models.DateTimeField(auto_now_add=True)),
('triggered', models.DateTimeField(blank=True, null=True)),
('data', models.TextField(blank=True)),
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