* rename AuthenticationListener

* add tests
This commit is contained in:
Nicolas Lœuillet
2015-09-29 17:05:17 +02:00
committed by Jeremy Benoist
parent 772732531e
commit 359b3f43cc
4 changed files with 96 additions and 2 deletions

View File

@ -47,7 +47,7 @@ services:
- @wallabag_core.graby
wallabag_core.registration_confirmed:
class: Wallabag\CoreBundle\EventListener\AuthenticationListener
class: Wallabag\CoreBundle\EventListener\RegistrationConfirmedListener
arguments: [@service_container, @doctrine.orm.entity_manager]
tags:
- { name: kernel.event_subscriber }

View File

@ -32,6 +32,7 @@
<div class="row mts txtcenter">
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}" />
<button type="submit">Login</button>
<a href="{{ path('fos_user_registration_register') }}" class="button">{% trans %}Register{% endtrans %}</a>
<a href="{{ path('forgot_password') }}" class="small">Forgot your password?</a>
</div>
</fieldset>