[Corrige] espacio entre los atributos y agrega el campo oculto csrf en login
This commit is contained in:
parent
f0843d2248
commit
d966a5edf0
|
@ -6,7 +6,7 @@
|
|||
'pages/login/login.css',
|
||||
) ?>
|
||||
<?php $desktop_styles = array(
|
||||
array('pages/signup/signup-desktop.css', 'attributes' => 'media="screen and (min-width: 900px)"'),
|
||||
array('pages/signup/signup-desktop.css', 'attributes' => 'media="screen and (min-width: 900px)"'),
|
||||
) ?>
|
||||
<?php $scripts = array() ?>
|
||||
<?php require_once 'views/components/head.php' ?>
|
||||
|
@ -19,13 +19,15 @@
|
|||
<img src="<?= NABU_DIRECTORY['images'] ?>/nabu-logo.svg" alt="Logo de nabu" class="header__logo">
|
||||
</picture>
|
||||
</header>
|
||||
|
||||
|
||||
<main class="sign-up">
|
||||
<section class="sign-up__title">
|
||||
<h1 class="sign-up__text">Bienvenido de nuevo.<br><strong>inicia sesión </strong>para continuar</h1>
|
||||
</section>
|
||||
<section class="form__container">
|
||||
<form class="form__sign-up" method="POST" action="<?= NABU_ROUTES['login'] ?>">
|
||||
<input type="hidden" name="csrf" value="<?= $token ?>">
|
||||
|
||||
<label for="identity">
|
||||
<input class="sign-up__input" type="text" id="identity" name="identity" minlength="1" maxlength="255" autofocus required aria-label="Ingresa tu nombre de usuario o correo" autocomplete="username">
|
||||
<span class="name__field">Nombre de usuario o correo electrónico</span>
|
||||
|
@ -37,11 +39,11 @@
|
|||
</label>
|
||||
|
||||
<div class="sign-up__container">
|
||||
<input class="sign-up__button"type="submit"name="signup-submit" value="Iniciar sesión" aria-label="Registrar">
|
||||
<input class="sign-up__button" type="submit" name="signup-submit" value="Iniciar sesión" aria-label="Registrar">
|
||||
<span></span>
|
||||
</div>
|
||||
|
||||
<p class="form__already">¿No tienes cuenta?
|
||||
|
||||
<p class="form__already">¿No tienes una cuenta?
|
||||
<a href="<?= NABU_ROUTES['signup'] ?>">Registrate</a>.
|
||||
</p>
|
||||
</form>
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
<?php $scripts = array() ?>
|
||||
<?php require_once 'views/components/head.php' ?>
|
||||
|
||||
|
||||
<?php require_once 'views/components/messages.php' ?>
|
||||
<div class="wrapper">
|
||||
<div class="content">
|
||||
|
@ -33,33 +32,32 @@
|
|||
<input class="sign-up__input" type="text" minlength="5" maxlength="255" id="name" name="name" required autofocus aria-label="Ingresa tu nombre completo" autocomplete="name">
|
||||
<span class="name__field">Nombre completo</span>
|
||||
</label>
|
||||
|
||||
|
||||
<label for="username">
|
||||
<input class="sign-up__input" type="text" id="username" name="username" minlength="1" maxlength="255" required aria-label="Ingresa tu nombre de usuario" autocomplete="username">
|
||||
<span class="name__field">Nombre de usuario</span>
|
||||
</label>
|
||||
|
||||
|
||||
<label for="email">
|
||||
<input class="sign-up__input" type="email" id="email" name="email" minlength="5" maxlength="255" required aria-label="Ingresa su correo o email" autocomplete="email">
|
||||
<span class="name__field">Correo(institucional)</span>
|
||||
</label>
|
||||
|
||||
|
||||
|
||||
<label for="password">
|
||||
<input class="sign-up__input" type="password" id="password" name="password" minlength="6" maxlength="255" required aria-label="Ingresa tu contraseña">
|
||||
<span class="name__field">Contraseña</span>
|
||||
</label>
|
||||
|
||||
|
||||
<label for="confirm-password">
|
||||
<input class="sign-up__input" type="password" id="confirm-password" name="confirm-password" minlength="6" maxlength="255" required aria-label="Confirma tu contraseña">
|
||||
<span class="name__field">Confirmar contraseña</span>
|
||||
</label>
|
||||
|
||||
|
||||
<div class="sign-up__container">
|
||||
<input class="sign-up__button"type="submit" name="signup-submit" value="Registrarme" aria-label="Registrar">
|
||||
<span></span>
|
||||
</div>
|
||||
|
||||
|
||||
<p class="form__already">¿Ya tienes cuenta?
|
||||
<a href="<?= NABU_ROUTES['login'] ?>">Inicia sesión</a>.
|
||||
</p>
|
||||
|
@ -68,7 +66,7 @@
|
|||
</section>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
|
||||
<picture class="form__image-container">
|
||||
<img class="form__image" src="https://cdna.artstation.com/p/assets/images/images/017/677/304/large/kerasumi-1.jpg?1556911326" alt="">
|
||||
</picture>
|
||||
|
|
Loading…
Reference in a new issue