user.routing.yml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. user.register:
  2. path: '/user/register'
  3. defaults:
  4. _entity_form: 'user.register'
  5. _title: 'Create new account'
  6. requirements:
  7. _access_user_register: 'TRUE'
  8. user.logout:
  9. path: '/user/logout'
  10. defaults:
  11. _controller: '\Drupal\user\Controller\UserController::logout'
  12. requirements:
  13. _user_is_logged_in: 'TRUE'
  14. user.admin_index:
  15. path: '/admin/config/people'
  16. defaults:
  17. _controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
  18. _title: 'People'
  19. requirements:
  20. _permission: 'access administration pages'
  21. entity.user.admin_form:
  22. path: '/admin/config/people/accounts'
  23. defaults:
  24. _form: '\Drupal\user\AccountSettingsForm'
  25. _title: 'Account settings'
  26. requirements:
  27. _permission: 'administer account settings'
  28. entity.user.collection:
  29. path: '/admin/people'
  30. defaults:
  31. _entity_list: 'user'
  32. _title: 'People'
  33. requirements:
  34. _permission: 'administer users'
  35. user.admin_create:
  36. path: '/admin/people/create'
  37. defaults:
  38. _entity_form: 'user.register'
  39. _title: 'Add user'
  40. requirements:
  41. _permission: 'administer users'
  42. user.admin_permissions:
  43. path: '/admin/people/permissions'
  44. defaults:
  45. _form: '\Drupal\user\Form\UserPermissionsForm'
  46. _title: 'Permissions'
  47. requirements:
  48. _permission: 'administer permissions'
  49. entity.user_role.edit_permissions_form:
  50. path: '/admin/people/permissions/{user_role}'
  51. defaults:
  52. _form: '\Drupal\user\Form\UserPermissionsRoleSpecificForm'
  53. _title: 'Edit role'
  54. requirements:
  55. _entity_access: 'user_role.update'
  56. user.multiple_cancel_confirm:
  57. path: '/admin/people/cancel'
  58. defaults:
  59. _form: '\Drupal\user\Form\UserMultipleCancelConfirm'
  60. _title: 'Cancel user'
  61. requirements:
  62. _permission: 'administer users'
  63. entity.user_role.collection:
  64. path: '/admin/people/roles'
  65. defaults:
  66. _entity_list: 'user_role'
  67. _title: 'Roles'
  68. requirements:
  69. _permission: 'administer permissions'
  70. user.role_add:
  71. path: '/admin/people/roles/add'
  72. defaults:
  73. _entity_form: user_role.default
  74. _title: 'Add role'
  75. requirements:
  76. _permission: 'administer permissions'
  77. entity.user_role.edit_form:
  78. path: '/admin/people/roles/manage/{user_role}'
  79. defaults:
  80. _entity_form: user_role.default
  81. _title: 'Edit role'
  82. requirements:
  83. _entity_access: user_role.update
  84. entity.user_role.delete_form:
  85. path: '/admin/people/roles/manage/{user_role}/delete'
  86. defaults:
  87. _entity_form: user_role.delete
  88. _title: 'Delete role'
  89. requirements:
  90. _entity_access: user_role.delete
  91. user.pass:
  92. path: '/user/password'
  93. defaults:
  94. _form: '\Drupal\user\Form\UserPasswordForm'
  95. _title: 'Reset your password'
  96. requirements:
  97. _access: 'TRUE'
  98. options:
  99. _maintenance_access: TRUE
  100. user.page:
  101. path: '/user'
  102. defaults:
  103. _controller: '\Drupal\user\Controller\UserController::userPage'
  104. _title: 'My account'
  105. requirements:
  106. _user_is_logged_in: 'TRUE'
  107. user.login:
  108. path: '/user/login'
  109. defaults:
  110. _form: '\Drupal\user\Form\UserLoginForm'
  111. _title: 'Log in'
  112. requirements:
  113. _user_is_logged_in: 'FALSE'
  114. options:
  115. _maintenance_access: TRUE
  116. user.login.http:
  117. path: '/user/login'
  118. defaults:
  119. _controller: \Drupal\user\Controller\UserAuthenticationController::login
  120. methods: [POST]
  121. requirements:
  122. _user_is_logged_in: 'FALSE'
  123. _format: 'json'
  124. user.login_status.http:
  125. path: '/user/login_status'
  126. defaults:
  127. _controller: \Drupal\user\Controller\UserAuthenticationController::loginStatus
  128. methods: [GET]
  129. requirements:
  130. _access: 'TRUE'
  131. _format: 'json'
  132. user.logout.http:
  133. path: '/user/logout'
  134. defaults:
  135. _controller: \Drupal\user\Controller\UserAuthenticationController::logout
  136. methods: [POST]
  137. requirements:
  138. _user_is_logged_in: 'TRUE'
  139. _format: 'json'
  140. _csrf_token: 'TRUE'
  141. user.cancel_confirm:
  142. path: '/user/{user}/cancel/confirm/{timestamp}/{hashed_pass}'
  143. defaults:
  144. _title: 'Confirm account cancellation'
  145. _controller: '\Drupal\user\Controller\UserController::confirmCancel'
  146. timestamp: 0
  147. hashed_pass: ''
  148. requirements:
  149. _entity_access: 'user.delete'
  150. user: \d+
  151. user.reset.login:
  152. path: '/user/reset/{uid}/{timestamp}/{hash}/login'
  153. defaults:
  154. _controller: '\Drupal\user\Controller\UserController::resetPassLogin'
  155. _title: 'Reset password'
  156. requirements:
  157. _user_is_logged_in: 'FALSE'
  158. options:
  159. _maintenance_access: TRUE
  160. no_cache: TRUE
  161. user.reset:
  162. path: '/user/reset/{uid}/{timestamp}/{hash}'
  163. defaults:
  164. _controller: '\Drupal\user\Controller\UserController::resetPass'
  165. _title: 'Reset password'
  166. requirements:
  167. _access: 'TRUE'
  168. options:
  169. _maintenance_access: TRUE
  170. no_cache: TRUE
  171. user.reset.form:
  172. path: '/user/reset/{uid}'
  173. defaults:
  174. _controller: '\Drupal\user\Controller\UserController::getResetPassForm'
  175. _title: 'Reset password'
  176. requirements:
  177. _user_is_logged_in: 'FALSE'
  178. options:
  179. _maintenance_access: TRUE
  180. no_cache: TRUE