2026-02-04 23:31:53 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @var array<int, string> $errors
|
add composer-unused, comprehensive docs, and project restructure
- Add icanhazstring/composer-unused as dev dependency for dependency hygiene checks
- Add German documentation (docs/) covering architecture, conventions, workflows, and developer checklists
- Add API layer (ApiAuth, ApiBootstrap, ApiResponse), audit, scheduler, custom fields, and SSO services
- Add Microsoft OIDC SSO, API token management, and user lifecycle features
- Add swagger-ui vendor integration and OpenAPI spec
- Add production Docker setup and bin/ scripts
- Update composer dependencies, config, templates, and frontend assets throughout
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-22 15:27:35 +01:00
|
|
|
* @var array<int, array{rule:string,text:string}> $passwordHints
|
2026-02-04 23:31:53 +01:00
|
|
|
* @var int $passwordMinLength
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
use MintyPHP\Buffer;
|
|
|
|
|
use MintyPHP\Session;
|
|
|
|
|
|
|
|
|
|
Buffer::set('title', t('Reset password'));
|
2026-03-06 20:46:22 +01:00
|
|
|
$errorNoticeId = !empty($errors) ? 'auth-reset-error-notice' : '';
|
|
|
|
|
$passwordHintId = 'auth-reset-password-hints';
|
2026-03-07 14:10:36 +01:00
|
|
|
$authHelpContext = [
|
|
|
|
|
'show_back_to_login' => true,
|
|
|
|
|
];
|
2026-02-04 23:31:53 +01:00
|
|
|
?>
|
|
|
|
|
|
2026-03-07 21:21:47 +01:00
|
|
|
<article class="login-card">
|
2026-02-04 23:31:53 +01:00
|
|
|
<header>
|
|
|
|
|
<hgroup>
|
|
|
|
|
<h1><?php e(t('Reset password')); ?></h1>
|
|
|
|
|
<p><?php e(t('Choose a new password for your account.')); ?></p>
|
|
|
|
|
</hgroup>
|
|
|
|
|
</header>
|
|
|
|
|
<form method="post">
|
|
|
|
|
<fieldset>
|
|
|
|
|
<legend>
|
|
|
|
|
<small>
|
|
|
|
|
<?php e(t('Password')); ?>
|
|
|
|
|
</small>
|
|
|
|
|
</legend>
|
|
|
|
|
<label for="password">
|
|
|
|
|
<span><?php e(t('Password')); ?></span>
|
|
|
|
|
<input required type="password" name="password" id="password"
|
2026-03-06 20:46:22 +01:00
|
|
|
minlength="<?php e($passwordMinLength); ?>" autocomplete="new-password"
|
|
|
|
|
aria-describedby="<?php e(trim($passwordHintId . ' ' . $errorNoticeId)); ?>" <?php if ($errorNoticeId !== ''): ?>aria-invalid="true"<?php endif; ?> />
|
2026-02-04 23:31:53 +01:00
|
|
|
</label>
|
|
|
|
|
<label for="password2">
|
|
|
|
|
<span><?php e(t('Password (again)')); ?></span>
|
|
|
|
|
<input required type="password" name="password2" id="password2"
|
2026-03-06 20:46:22 +01:00
|
|
|
minlength="<?php e($passwordMinLength); ?>" autocomplete="new-password"
|
|
|
|
|
aria-describedby="<?php e(trim($passwordHintId . ' ' . $errorNoticeId)); ?>" <?php if ($errorNoticeId !== ''): ?>aria-invalid="true"<?php endif; ?> />
|
2026-02-04 23:31:53 +01:00
|
|
|
</label>
|
|
|
|
|
<?php if (!empty($passwordHints)): ?>
|
2026-03-06 20:46:22 +01:00
|
|
|
<div id="<?php e($passwordHintId); ?>" class="form-hint" data-password-hints data-password-input="#password" data-confirm-input="#password2"
|
add composer-unused, comprehensive docs, and project restructure
- Add icanhazstring/composer-unused as dev dependency for dependency hygiene checks
- Add German documentation (docs/) covering architecture, conventions, workflows, and developer checklists
- Add API layer (ApiAuth, ApiBootstrap, ApiResponse), audit, scheduler, custom fields, and SSO services
- Add Microsoft OIDC SSO, API token management, and user lifecycle features
- Add swagger-ui vendor integration and OpenAPI spec
- Add production Docker setup and bin/ scripts
- Update composer dependencies, config, templates, and frontend assets throughout
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-22 15:27:35 +01:00
|
|
|
data-min-length="<?php e($passwordMinLength); ?>">
|
2026-02-04 23:31:53 +01:00
|
|
|
<strong><?php e(t('Password requirements')); ?></strong>
|
|
|
|
|
<ul class="form-hint-list">
|
|
|
|
|
<?php foreach ($passwordHints as $hint): ?>
|
|
|
|
|
<li data-rule="<?php e($hint['rule']); ?>"><?php e($hint['text']); ?></li>
|
|
|
|
|
<?php endforeach; ?>
|
|
|
|
|
<li data-rule="match"><?php e(t('Passwords must match')); ?></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
</fieldset>
|
|
|
|
|
<?php if (!empty($errors)): ?>
|
2026-03-06 20:46:22 +01:00
|
|
|
<div id="<?php e($errorNoticeId); ?>" class="notice" data-variant="error" role="alert" aria-live="assertive" tabindex="-1">
|
2026-02-04 23:31:53 +01:00
|
|
|
<ul>
|
|
|
|
|
<?php foreach ($errors as $error): ?>
|
|
|
|
|
<li><?php e($error); ?></li>
|
|
|
|
|
<?php endforeach; ?>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
<button type="submit"><?php e(t('Reset password')); ?></button>
|
|
|
|
|
<?php Session::getCsrfInput(); ?>
|
|
|
|
|
</form>
|
2026-03-06 21:59:41 +01:00
|
|
|
<?php require templatePath('partials/auth-help-links.phtml'); ?>
|
2026-02-04 23:31:53 +01:00
|
|
|
</article>
|