2018-08-15 01:12:58 +00:00
|
|
|
{% extends 'auth/master.twig' %}
|
2018-10-22 19:53:21 +00:00
|
|
|
{% from 'macros.twig' import container_title %}
|
2018-09-27 22:27:30 +00:00
|
|
|
{% from 'auth/macros.twig' import auth_login %}
|
2018-03-22 02:56:41 +00:00
|
|
|
|
|
|
|
{% block content %}
|
2018-09-27 22:27:30 +00:00
|
|
|
{{ auth_login(
|
|
|
|
auth_username|default(''),
|
|
|
|
auth_register_message|default(auth_login_error|default('')),
|
|
|
|
auth_register_message is defined
|
|
|
|
) }}
|
|
|
|
|
2018-10-05 07:33:26 +00:00
|
|
|
{% if can_create_account %}
|
2018-10-22 17:26:59 +00:00
|
|
|
<form class="container auth" method="post" action="">
|
2018-09-27 22:27:30 +00:00
|
|
|
<input type="hidden" name="auth[mode]" value="register">
|
2018-10-02 19:16:42 +00:00
|
|
|
{{ 'register'|csrf|raw }}
|
|
|
|
|
2018-10-22 19:53:21 +00:00
|
|
|
{{ container_title('Register') }}
|
2018-09-27 22:27:30 +00:00
|
|
|
|
|
|
|
{% if auth_register_error is defined %}
|
|
|
|
<div class="warning auth__warning">
|
|
|
|
<div class="warning__content">
|
|
|
|
{{ auth_register_error }}
|
|
|
|
</div>
|
2018-09-23 01:32:18 +00:00
|
|
|
</div>
|
2018-09-27 22:27:30 +00:00
|
|
|
{% endif %}
|
2018-09-23 01:32:18 +00:00
|
|
|
|
2018-09-27 22:27:30 +00:00
|
|
|
<div class="auth__form">
|
2018-10-22 17:26:59 +00:00
|
|
|
<input class="input__text auth__input" type="text"
|
2018-09-27 22:27:30 +00:00
|
|
|
name="auth[username]" placeholder="Username"
|
|
|
|
value="{{ auth_username|default('') }}" required>
|
2018-09-23 01:32:18 +00:00
|
|
|
|
2018-10-22 17:26:59 +00:00
|
|
|
<input class="input__text auth__input" type="password"
|
2018-09-27 22:27:30 +00:00
|
|
|
name="auth[password]" placeholder="Password" required>
|
2018-09-23 01:32:18 +00:00
|
|
|
|
2018-10-22 17:26:59 +00:00
|
|
|
<input class="input__text auth__input" type="text"
|
2018-09-27 22:27:30 +00:00
|
|
|
name="auth[email]" placeholder="E-mail"
|
|
|
|
value="{{ auth_email|default('') }}" required>
|
2018-03-22 02:56:41 +00:00
|
|
|
|
2018-10-22 17:26:59 +00:00
|
|
|
<input class="input__text auth__input" type="text"
|
2018-09-30 21:24:15 +00:00
|
|
|
name="auth[meow]" placeholder="What is the outcome of nine plus ten?" required>
|
|
|
|
|
2018-10-22 17:26:59 +00:00
|
|
|
<button class="input__button">Sign up</button>
|
2018-03-22 02:56:41 +00:00
|
|
|
</div>
|
2018-09-27 22:27:30 +00:00
|
|
|
</form>
|
|
|
|
{% endif %}
|
|
|
|
|
2018-10-05 07:33:26 +00:00
|
|
|
{% if can_reset_password %}
|
2018-10-22 17:26:59 +00:00
|
|
|
<form class="container auth" method="post" action="">
|
2018-09-27 22:27:30 +00:00
|
|
|
<input type="hidden" name="auth[mode]" value="forgot">
|
2018-10-02 19:16:42 +00:00
|
|
|
{{ 'passforgot'|csrf|raw }}
|
|
|
|
|
2018-10-22 19:53:21 +00:00
|
|
|
{{ container_title('Forgot password') }}
|
2018-09-27 22:27:30 +00:00
|
|
|
|
|
|
|
{% if auth_forgot_error is defined %}
|
|
|
|
<div class="warning auth__warning">
|
|
|
|
<div class="warning__content">
|
|
|
|
{{ auth_forgot_error }}
|
|
|
|
</div>
|
2018-09-23 01:32:18 +00:00
|
|
|
</div>
|
2018-09-27 22:27:30 +00:00
|
|
|
{% endif %}
|
2018-09-23 01:32:18 +00:00
|
|
|
|
2018-09-27 22:27:30 +00:00
|
|
|
<div class="auth__form">
|
2018-10-22 17:26:59 +00:00
|
|
|
<input class="input__text auth__input" type="text"
|
2018-09-27 22:27:30 +00:00
|
|
|
name="auth[email]" placeholder="E-mail"
|
|
|
|
value="{{ auth_email|default('') }}" required>
|
2018-09-23 01:32:18 +00:00
|
|
|
|
2018-10-22 17:26:59 +00:00
|
|
|
<button class="input__button">Send reminder</button>
|
2018-09-27 22:27:30 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
{% endif %}
|
2018-03-22 02:56:41 +00:00
|
|
|
{% endblock %}
|