Files
orderPRO/resources/views/auth/login.php
Jacek Pyziak b67542d159 feat: Implement user authentication and database migration system
- Refactored AuthService to use UserRepository for user authentication.
- Added .env file for environment configuration.
- Created migration system with Migrator and ConnectionFactory classes.
- Added database migration files for creating users table.
- Implemented settings controller for managing database migrations.
- Developed user repository for user data handling.
- Created users controller for user management interface.
- Added frontend standards and migration documentation.
- Introduced reusable UI components and jQuery alerts module.
2026-02-21 17:51:34 +01:00

49 lines
1.6 KiB
PHP

<section class="login-card" aria-labelledby="login-title">
<header class="login-header">
<p class="login-badge"><?= $e($t('brand.name_full')) ?></p>
<h1 id="login-title"><?= $e($t('auth.login.heading')) ?></h1>
<p class="login-subtitle"><?= $e($t('auth.login.subtitle')) ?></p>
</header>
<?php if (!empty($errorMessage)): ?>
<div class="alert alert--danger login-alert" role="alert">
<?= $e($errorMessage) ?>
</div>
<?php else: ?>
<div class="alert alert--danger login-alert login-alert-placeholder" aria-hidden="true">
<?= $e($t('auth.login.error_placeholder')) ?>
</div>
<?php endif; ?>
<form class="login-form" action="/login" method="post" novalidate>
<input type="hidden" name="_token" value="<?= $e($csrfToken ?? '') ?>">
<label class="form-field">
<span class="field-label"><?= $e($t('auth.login.email_label')) ?></span>
<input
type="email"
class="form-control"
name="email"
autocomplete="email"
required
placeholder="<?= $e($t('auth.login.email_placeholder')) ?>"
value="<?= $e($oldEmail ?? '') ?>"
>
</label>
<label class="form-field">
<span class="field-label"><?= $e($t('auth.login.password_label')) ?></span>
<input
type="password"
class="form-control"
name="password"
autocomplete="current-password"
required
placeholder="<?= $e($t('auth.login.password_placeholder')) ?>"
>
</label>
<button type="submit" class="btn btn--primary btn--block login-submit"><?= $e($t('actions.login')) ?></button>
</form>
</section>