Remove unused login_link.html template

This commit is contained in:
Quentin Gliech
2025-11-27 15:58:39 +01:00
parent c58033a740
commit 93b9b174e2
4 changed files with 1 additions and 49 deletions

View File

@@ -1456,7 +1456,7 @@ impl TemplateContext for RecoveryFinishContext {
}
}
/// Context used by the `pages/upstream_oauth2/{link_mismatch,login_link}.html`
/// Context used by the `pages/upstream_oauth2/link_mismatch.html`
/// templates
#[derive(Serialize)]
pub struct UpstreamExistingLinkContext {

View File

@@ -442,9 +442,6 @@ register_templates! {
/// Render the upstream link mismatch message
pub fn render_upstream_oauth2_link_mismatch(WithLanguage<WithCsrf<WithSession<UpstreamExistingLinkContext>>>) { "pages/upstream_oauth2/link_mismatch.html" }
/// Render the upstream link match
pub fn render_upstream_oauth2_login_link(WithLanguage<WithCsrf<UpstreamExistingLinkContext>>) { "pages/upstream_oauth2/login_link.html" }
/// Render the upstream suggest link message
pub fn render_upstream_oauth2_suggest_link(WithLanguage<WithCsrf<WithSession<UpstreamSuggestLink>>>) { "pages/upstream_oauth2/suggest_link.html" }

View File

@@ -1,31 +0,0 @@
{#
Copyright 2025 New Vector Ltd.
SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
Please see LICENSE in the repository root for full details.
-#}
{% extends "base.html" %}
{% block content %}
<header class="page-heading">
<div class="icon">
{{ icon.link() }}
</div>
<div class="header">
<h1 class="title">{{ _("mas.upstream_oauth2.login_link.heading") }}</h1>
</div>
</header>
<section class="flex flex-col gap-6 justify-center">
{{ _("mas.upstream_oauth2.login_link.description", username=linked_user.username) }}
<form method="POST" class="cpd-form-root">
<input type="hidden" name="csrf" value="{{ csrf_token }}" />
<input type="hidden" name="action" value="link" />
{{ button.button(text=_("mas.upstream_oauth2.login_link.action")) }}
</form>
</section>
{% endblock content %}

View File

@@ -697,20 +697,6 @@
"description": "Page shown when the user tries to link an upstream account that is already linked to another account"
}
},
"login_link": {
"action": "Continue",
"@action": {
"context": "pages/upstream_oauth2/login_link.html:27:28-70"
},
"description": "An account exists for this username (%(username)s), it will be linked to this upstream account.",
"@description": {
"context": "pages/upstream_oauth2/login_link.html:21:7-85"
},
"heading": "Link to your existing account",
"@heading": {
"context": "pages/upstream_oauth2/login_link.html:17:27-70"
}
},
"register": {
"choose_username": {
"description": "This cannot be changed later.",