further things around login

This commit is contained in:
2026-03-07 21:21:47 +01:00
parent fb6f87374f
commit 9168730a8a
18 changed files with 408 additions and 42 deletions

View File

@@ -16,7 +16,8 @@ $authHelpContext = [
];
?>
<article>
<article class="login-card">
<?php require templatePath('partials/auth-logo.phtml'); ?>
<header>
<hgroup>
<h1><?php e(t('Forgot password')); ?></h1>

View File

@@ -36,24 +36,18 @@ if ($selectedTenantInitial === '') {
$errors = is_array($errors ?? null) ? $errors : [];
$errorNoticeId = $errors ? 'auth-login-error-notice' : '';
$loginHeading = t('Login');
$loginSubheading = t('Please enter your credentials');
$loginSubheading = t('Login credentials');
$authHelpContext = ['show_support' => true];
if ($stage === 'resolve_email') {
$loginHeading = t('Login');
$loginSubheading = t('Enter your email to continue');
$authHelpContext = [
'show_register' => true,
'show_support' => true,
];
} elseif ($stage === 'choose_tenant') {
$loginHeading = t('Select tenant');
$loginSubheading = t('Select your tenant to continue');
$authHelpContext = [
'show_support' => true,
];
} else {
$loginHeading = t('Login options');
$loginSubheading = t('Choose how you want to sign in');
$authHelpContext = [
'show_forgot' => !empty($selectedTenantMethods['local']),
'show_support' => true,
@@ -63,6 +57,7 @@ if ($stage === 'resolve_email') {
?>
<article class="login-card">
<?php require templatePath('partials/auth-logo.phtml'); ?>
<header>
<hgroup>
<h1><?php e($loginHeading); ?></h1>
@@ -70,6 +65,7 @@ if ($stage === 'resolve_email') {
</hgroup>
</header>
<?php if ($errors): ?>
<div id="<?php e($errorNoticeId); ?>" class="notice" data-variant="error" role="alert" aria-live="assertive" tabindex="-1">
<ul>
@@ -99,6 +95,7 @@ if ($stage === 'resolve_email') {
<input type="hidden" name="email" value="<?php e($email); ?>">
<input type="hidden" name="tenant_hint" value="<?php e($tenantHint); ?>">
<fieldset class="login-tenant-fieldset">
<legend class="login-tenant-select-label"><?php e(t('Select tenant')); ?></legend>
<div class="login-tenant-choice-grid">
<?php foreach ($tenantCandidates as $tenantCandidate): ?>
<?php

View File

@@ -22,7 +22,8 @@ $authHelpContext = [
'show_support' => true,
];
?>
<article>
<article class="login-card">
<?php require templatePath('partials/auth-logo.phtml'); ?>
<header>
<hgroup>
<h1><?php e(t('Register')); ?></h1>

View File

@@ -18,7 +18,8 @@ $authHelpContext = [
];
?>
<article>
<article class="login-card">
<?php require templatePath('partials/auth-logo.phtml'); ?>
<header>
<hgroup>
<h1><?php e(t('Reset password')); ?></h1>

View File

@@ -17,7 +17,8 @@ $authHelpContext = [
];
?>
<article>
<article class="login-card">
<?php require templatePath('partials/auth-logo.phtml'); ?>
<header>
<hgroup>
<h1><?php e(t('Verify code')); ?></h1>

View File

@@ -17,7 +17,8 @@ $authHelpContext = [
];
?>
<article>
<article class="login-card">
<?php require templatePath('partials/auth-logo.phtml'); ?>
<header>
<hgroup>
<h1><?php e(t('Verify email')); ?></h1>