asdasd
All checks were successful
Deploy / deploy-staging (push) Successful in 1m3s
Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-06-15 02:05:36 +02:00
parent e9b86eb7a3
commit 9325b93404
18 changed files with 1102 additions and 268 deletions

View File

@@ -77,9 +77,7 @@
</div>
<div class="kb-form-links">
<#if (url.loginResetCredentialsUrl!'')?has_content>
<a tabindex="6" href="${url.loginResetCredentialsUrl}">Passwort vergessen?</a>
</#if>
<a tabindex="6" id="kb-forgot-password-link" href="#" hidden>Passwort vergessen?</a>
</div>
</div>
@@ -90,7 +88,7 @@
<div id="kc-registration-container" class="kb-registration">
<div id="kc-registration">
<a class="kb-register-button" id="kb-register-button" tabindex="8" href="#" hidden>Registrieren</a>
<a class="kb-register-button" id="kb-register-button" tabindex="8" href="#" hidden>Neue Benutzer</a>
</div>
</div>
</form>

View File

@@ -1,7 +1,8 @@
(function () {
const registerLink = document.getElementById('kb-register-button');
const forgotPasswordLink = document.getElementById('kb-forgot-password-link');
if (!registerLink) {
if (!registerLink && !forgotPasswordLink) {
return;
}
@@ -14,8 +15,14 @@
try {
const target = new URL(redirectUri);
registerLink.href = target.origin + '/auth/register';
registerLink.hidden = false;
if (registerLink) {
registerLink.href = target.origin + '/auth/register/';
registerLink.hidden = false;
}
if (forgotPasswordLink) {
forgotPasswordLink.href = target.origin + '/auth/forgot-password/';
forgotPasswordLink.hidden = false;
}
} catch (error) {
console.warn('Registrierungslink konnte nicht vorbereitet werden.', error);
}