2018-05-04 17:04:13 +02:00
|
|
|
{% trans_default_domain 'FOSUserBundle' %}
|
2018-04-04 16:25:25 +02:00
|
|
|
{% extends '@HWIOAuth/layout.html.twig' %}
|
2018-05-04 17:04:13 +02:00
|
|
|
{% block bigMain %}
|
|
|
|
{% include 'default/header.html.twig' %}
|
2018-06-04 13:11:40 +02:00
|
|
|
<section class="bg-girl padded login-hwioauth">
|
2018-05-04 17:04:13 +02:00
|
|
|
<div class="container">
|
|
|
|
<div class="row justify-content-md-center align-items-center">
|
|
|
|
<div class="col-md-auto">
|
|
|
|
<fieldset class="bg-shader pull-left form-group padded">
|
|
|
|
<div class="row">
|
2018-06-04 13:11:40 +02:00
|
|
|
<div class="col-xs-12 col-sm-6">
|
2018-05-04 17:04:13 +02:00
|
|
|
<div class="row">
|
2018-06-04 13:11:40 +02:00
|
|
|
<div class="col-xs-12 col-sm-6">
|
2018-05-04 17:04:13 +02:00
|
|
|
<h1>
|
|
|
|
<i class="fa fa-key"></i>
|
|
|
|
Se connecter
|
|
|
|
</h1>
|
2018-05-08 09:53:00 +02:00
|
|
|
{#<div class="alert alert-info">#}
|
|
|
|
{#En raison de maintenance technique, seul le login via twitter fonctionne#}
|
|
|
|
{#actuellement.#}
|
|
|
|
{#</div>#}
|
|
|
|
{% if error %}
|
|
|
|
<div class="alert alert-danger">
|
|
|
|
{{ error|trans }}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2018-04-04 16:25:25 +02:00
|
|
|
|
2018-05-08 09:53:00 +02:00
|
|
|
<form action="{{ path("fos_user_security_check") }}" method="post">
|
|
|
|
{% if csrf_token is defined %}
|
|
|
|
csrf_token : {{ csrf_token }}
|
|
|
|
<input type="hidden" name="_csrf_token" value="{{ csrf_token }}"/>
|
|
|
|
{% else %}
|
|
|
|
<div class="alert alert-danger">
|
2018-05-04 17:04:13 +02:00
|
|
|
|
2018-05-08 09:53:00 +02:00
|
|
|
PAS DE TOKEN
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2018-05-04 17:04:13 +02:00
|
|
|
|
2018-05-08 09:53:00 +02:00
|
|
|
<label for="username">{{ 'security.login.username'|trans }}</label>
|
|
|
|
<input type="text" id="username" name="_username"
|
|
|
|
value="" required="required"
|
|
|
|
autocomplete="username"/>
|
2018-05-04 17:04:13 +02:00
|
|
|
|
2018-05-08 09:53:00 +02:00
|
|
|
<label for="password">{{ 'security.login.password'|trans }}</label>
|
|
|
|
<input type="password" id="password" name="_password"
|
|
|
|
required="required"
|
|
|
|
autocomplete="current-password"/>
|
2018-05-04 17:04:13 +02:00
|
|
|
|
2018-05-08 09:53:00 +02:00
|
|
|
<input type="checkbox" id="remember_me" name="_remember_me" value="on"/>
|
|
|
|
<label for="remember_me">{{ 'security.login.remember_me'|trans }}</label>
|
2018-05-04 17:04:13 +02:00
|
|
|
|
2018-05-08 09:53:00 +02:00
|
|
|
<input type="submit" id="_submit" name="_submit"
|
|
|
|
value="{{ 'security.login.submit'|trans }}"/>
|
|
|
|
</form>
|
2018-05-04 17:04:13 +02:00
|
|
|
</div>
|
2018-06-04 13:11:40 +02:00
|
|
|
<div class="col-xs-12 col-sm-6">
|
2018-05-04 17:04:13 +02:00
|
|
|
{#<p>#}
|
|
|
|
|
|
|
|
{#<a class="btn btn-info" href="{{ path('fos_user_resetting_request') }}">#}
|
|
|
|
{#Mot de passe oublié?#}
|
|
|
|
{#</a>#}
|
|
|
|
{#</p>#}
|
|
|
|
<p>
|
|
|
|
|
|
|
|
<a class="btn btn-info"
|
|
|
|
href="{{ path('fos_user_registration_register') }}">
|
|
|
|
Créer un compte
|
|
|
|
</a>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-06-04 13:11:40 +02:00
|
|
|
<div class="col-xs-12 col-sm-6">
|
2018-05-08 11:27:06 +02:00
|
|
|
{#{% block hwi_oauth_content %}#}
|
|
|
|
{#<h1>oauth login</h1>#}
|
|
|
|
{#{% if error is defined and error %}#}
|
|
|
|
{#<div class="alert alert-danger pull-left">{{ error|trans }}</div>#}
|
|
|
|
{#{% endif %}#}
|
2018-05-04 17:04:13 +02:00
|
|
|
|
2018-05-08 11:27:06 +02:00
|
|
|
{#<a class="btn btn-default btn-{{ "twitter" }}"#}
|
|
|
|
{#href="{{ hwi_oauth_login_url("twitter") }}">#}
|
|
|
|
{#<i class="fa fa-{{ "twitter" }}"></i>#}
|
|
|
|
{#{{ "twitter" | trans({}, 'HWIOAuthBundle') }}#}
|
|
|
|
{#</a>#}
|
|
|
|
{#{% endblock hwi_oauth_content %}#}
|
2018-05-04 17:04:13 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
{% include 'default/footer.html.twig' %}
|
|
|
|
{% endblock %}
|