From 48b786067b171b182c8d76a38cd08d4f3b0d5d08 Mon Sep 17 00:00:00 2001 From: Andrey Rusakov Date: Thu, 10 Oct 2024 17:09:52 +0200 Subject: [PATCH] Reworked generating authorization links --- api/templates/admin/login.html | 4 ++-- api/templates/rest_framework/login.html | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/api/templates/admin/login.html b/api/templates/admin/login.html index d38788b4..ae53c180 100644 --- a/api/templates/admin/login.html +++ b/api/templates/admin/login.html @@ -1,5 +1,5 @@ {% extends "admin/login.html" %} -{% block body %} +{% block content %} {{ block.super }} {% if OIDC_ENABLED %} {% endif %} diff --git a/api/templates/rest_framework/login.html b/api/templates/rest_framework/login.html index e67ce98f..b6522ab4 100644 --- a/api/templates/rest_framework/login.html +++ b/api/templates/rest_framework/login.html @@ -7,7 +7,13 @@ document.querySelector("input[value='Log in']") .parentElement .parentElement - .innerHTML += `Login with Zitadel`; + .innerHTML += ` +
+
+ + + +
`; }; {% endif %}