From cec488054e0ab4df8d1fab36017abdd556fde022 Mon Sep 17 00:00:00 2001 From: Benni Baermann Date: Wed, 3 Mar 2021 15:05:27 +0100 Subject: [PATCH] some more oauth settings, getting closer... --- eva/settings.py | 5 +++++ evapp/templates/evapp/employee_form.html | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/eva/settings.py b/eva/settings.py index 06d5ab4..1491fd4 100644 --- a/eva/settings.py +++ b/eva/settings.py @@ -133,6 +133,11 @@ STATIC_URL = '/static/' # settings needed for allauth +SOCIALACCOUNT_PROVIDERS = { + 'nextcloud': { + 'SERVER': 'https://wolke.wikimedia.de/', + } +} AUTHENTICATION_BACKENDS = ( "django.contrib.auth.backends.ModelBackend", diff --git a/evapp/templates/evapp/employee_form.html b/evapp/templates/evapp/employee_form.html index bbb5796..5d1546d 100644 --- a/evapp/templates/evapp/employee_form.html +++ b/evapp/templates/evapp/employee_form.html @@ -11,6 +11,8 @@ +{% load socialaccount %} +{% if user.is_authenticated %} {% block content %}