Add methods
Add requirements
- path: /login
- defaults: { _controller: Rapsys\UserBundle\Controller\DefaultController::login }
+ path: /login
+ controller: Rapsys\UserBundle\Controller\DefaultController::login
+ methods: GET|POST
- path: /recover
- defaults: { _controller: Rapsys\UserBundle\Controller\DefaultController::recover }
+ path: /recover
+ controller: Rapsys\UserBundle\Controller\DefaultController::recover
+ methods: GET|POST
rapsys_user_recover_mail:
path: /recover/{recipient}/{hash}
rapsys_user_recover_mail:
path: /recover/{recipient}/{hash}
- defaults: { _controller: Rapsys\UserBundle\Controller\DefaultController::recoverMail }
+ controller: Rapsys\UserBundle\Controller\DefaultController::recoverMail
+ requirements:
+ recipient: '[a-zA-Z0-9=_-]+'
+ hash: '[a-zA-Z0-9=_-]+'
+ methods: GET|POST
- path: /register
- defaults: { _controller: Rapsys\UserBundle\Controller\DefaultController::register }
+ path: /register
+ controller: Rapsys\UserBundle\Controller\DefaultController::register
+ methods: GET|POST
+ path: /logout
+ methods: GET