You are here

change_pwd_page.routing.yml in Password Separate Form 8

File

change_pwd_page.routing.yml
View source
  1. change_pwd_page.change_password:
  2. path: '/user/change-password'
  3. defaults:
  4. _controller: '\Drupal\change_pwd_page\Controller\ChangePwdPageController::changePass'
  5. _title: 'Password Separate Form'
  6. requirements:
  7. _user_is_logged_in: 'TRUE'
  8. change_pwd_page.change_password_form:
  9. path: '/user/{user}/change-password'
  10. defaults:
  11. _form: '\Drupal\change_pwd_page\Form\ChangePasswordForm'
  12. _title: 'Password Separate Form'
  13. requirements:
  14. _entity_access: 'user.update'
  15. user: \d+
  16. options:
  17. _admin_route: TRUE
  18. parameters:
  19. user:
  20. type: entity:user
  21. change_pwd_page.reset:
  22. path: '/user/reset/{uid}/{timestamp}/{hash}/new/login'
  23. defaults:
  24. _controller: '\Drupal\change_pwd_page\Controller\ChangePwdPageController::resetPass'
  25. _title: 'Reset password'
  26. requirements:
  27. _access: 'TRUE'
  28. options:
  29. _maintenance_access: TRUE
  30. no_cache: TRUE