Commit 6c78b274 authored by hynek's avatar hynek 🤤
Browse files

feat(ddusers.views): add redirect to shib urls

parent aad33e32
# -*- coding: utf-8 -*-
from django.shortcuts import get_object_or_404, render, redirect
from django.conf import settings
from django.contrib.contenttypes.models import ContentType
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from django.http import Http404
......@@ -182,6 +183,16 @@ def user_list(request, page=1):
)
def user_login(request):
response = redirect(settings.SHIBBOLETH_LOGIN_URL)
return response
def user_logout(request):
response = redirect(settings.SHIBBOLETH_LOGOUT_URL)
return response
def user_edit(request):
oep_publications = get_oep_parameters(
"publication", True, "Add new Discuss Data related publication..."
......
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