php - Sonata Admin + forgot password -
i'm trying "forgot password" functionality work. i've done far:
add following routing.yml:
sonata_user_resetting: resource: "@sonatauserbundle/resources/config/routing/sonata_resetting_1.xml" prefix: /resetting
my route login /admin/login. i've added url in src/application/sonata/userbundle/resources/views/security/login.html.twig
:
<div class="control-group"> <a href="{{ path('fos_user_resetting_request') }}"> {{ 'forgotten_password'|trans({}, 'sonatauserbundle') }} </a> </div>
my login page (/admin/login) looks now:
but when click on "forgotten password?" page:
but have in same layout login. when click on "login" i'm getting redirected /login instead of /admin/login. how can change layout + login url?
Comments
Post a Comment