7f17681409
Session login against /auth/*, with a guard on every route and an interceptor that returns to the login on 401. The header, the import workspace and both governance panels only offer the account's own domains (auth/dominios.ts), and a batch opens on the account's database. The sign-in screen follows the app's palette: logo above the title, the action button in the shared tokens, and no register or password-recovery rows.
60 lines
1.9 KiB
HTML
60 lines
1.9 KiB
HTML
<section class="login" aria-labelledby="login-titulo">
|
|
<div class="login__caja">
|
|
<img class="login__logo" src="assets/branding/isssteleon-logo.png" alt="ISSSTELEON" />
|
|
|
|
<h1 class="login__titulo" id="login-titulo">Inicio de sesión</h1>
|
|
|
|
<form class="login__formulario" (ngSubmit)="ingresar()" novalidate>
|
|
<mat-form-field appearance="outline" class="login__campo" subscriptSizing="dynamic">
|
|
<input
|
|
matInput
|
|
name="usuario"
|
|
[(ngModel)]="usuario"
|
|
placeholder="Usuario"
|
|
aria-label="Usuario"
|
|
autocomplete="username"
|
|
autocapitalize="none"
|
|
spellcheck="false"
|
|
/>
|
|
</mat-form-field>
|
|
|
|
<mat-form-field appearance="outline" class="login__campo" subscriptSizing="dynamic">
|
|
<input
|
|
matInput
|
|
name="contrasena"
|
|
[(ngModel)]="contrasena"
|
|
[type]="verContrasena() ? 'text' : 'password'"
|
|
placeholder="Contraseña"
|
|
aria-label="Contraseña"
|
|
autocomplete="current-password"
|
|
/>
|
|
<button
|
|
mat-icon-button
|
|
matSuffix
|
|
type="button"
|
|
class="login__ojo"
|
|
(click)="mostrarContrasena()"
|
|
[attr.aria-label]="verContrasena() ? 'Ocultar contraseña' : 'Mostrar contraseña'"
|
|
[attr.aria-pressed]="verContrasena()"
|
|
>
|
|
<mat-icon>{{ verContrasena() ? 'visibility_off' : 'visibility' }}</mat-icon>
|
|
</button>
|
|
</mat-form-field>
|
|
|
|
@if (error(); as mensaje) {
|
|
<p class="login__error" role="alert">{{ mensaje }}</p>
|
|
}
|
|
|
|
<button
|
|
type="submit"
|
|
class="login__ingresar"
|
|
[disabled]="!usuario.trim() || !contrasena || enviando()"
|
|
>
|
|
{{ enviando() ? 'Ingresando…' : 'Ingresar' }}
|
|
</button>
|
|
</form>
|
|
|
|
<p class="login__legal">©{{ anio }} Todos los derechos reservados.</p>
|
|
</div>
|
|
</section>
|