Advertisement
Guest User

Untitled

a guest
Oct 21st, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.63 KB | None | 0 0
  1. mycustommodule.register:
  2. path: '/profile/register'
  3. defaults:
  4. _entity_form: 'user.register'
  5. _title: 'Create new account'
  6. requirements:
  7. _access_user_register: 'TRUE'
  8.  
  9. mycustommodule.pass:
  10. path: '/profile/password'
  11. defaults:
  12. _form: 'DrupaluserFormUserPasswordForm'
  13. _title: 'Reset your password'
  14. requirements:
  15. _access: 'TRUE'
  16. options:
  17. _maintenance_access: TRUE
  18.  
  19. mycustommodule.page:
  20. path: '/profile'
  21. defaults:
  22. _controller: 'DrupaluserControllerUserController::userPage'
  23. _title: 'My account'
  24. requirements:
  25. _user_is_logged_in: 'TRUE'
  26.  
  27. mycustommodule.login:
  28. path: '/profile/login'
  29. defaults:
  30. _form: 'DrupaluserFormUserLoginForm'
  31. _title: 'Log in'
  32. requirements:
  33. _user_is_logged_in: 'FALSE'
  34. options:
  35. _maintenance_access: TRUE
  36.  
  37. mycustommodule.login.http:
  38. path: '/profile/login'
  39. defaults:
  40. _controller: DrupaluserControllerUserAuthenticationController::login
  41. methods: [POST]
  42. requirements:
  43. _user_is_logged_in: 'FALSE'
  44. _format: 'json'
  45.  
  46. mycustommodule.login_status.http:
  47. path: '/profile/login_status'
  48. defaults:
  49. _controller: DrupaluserControllerUserAuthenticationController::loginStatus
  50. methods: [GET]
  51. requirements:
  52. _access: 'TRUE'
  53. _format: 'json'
  54.  
  55. mycustommodule.logout.http:
  56. path: '/profile/logout'
  57. defaults:
  58. _controller: DrupaluserControllerUserAuthenticationController::logout
  59. methods: [POST]
  60. requirements:
  61. _user_is_logged_in: 'TRUE'
  62. _format: 'json'
  63. _csrf_token: 'TRUE'
  64.  
  65. mycustommodule.cancel_confirm:
  66. path: '/profile/{user}/cancel/confirm/{timestamp}/{hashed_pass}'
  67. defaults:
  68. _title: 'Confirm account cancellation'
  69. _controller: 'DrupaluserControllerUserController::confirmCancel'
  70. timestamp: 0
  71. hashed_pass: ''
  72. requirements:
  73. _entity_access: 'user.delete'
  74. user: d+
  75.  
  76. mycustommodule.reset.login:
  77. path: '/profile/reset/{uid}/{timestamp}/{hash}/login'
  78. defaults:
  79. _controller: 'DrupaluserControllerUserController::resetPassLogin'
  80. _title: 'Reset password'
  81. requirements:
  82. _user_is_logged_in: 'FALSE'
  83. options:
  84. _maintenance_access: TRUE
  85. no_cache: TRUE
  86.  
  87. mycustommodule.reset:
  88. path: '/profile/reset/{uid}/{timestamp}/{hash}'
  89. defaults:
  90. _controller: 'DrupaluserControllerUserController::resetPass'
  91. _title: 'Reset password'
  92. requirements:
  93. _access: 'TRUE'
  94. options:
  95. _maintenance_access: TRUE
  96. no_cache: TRUE
  97.  
  98. mycustommodule.reset.form:
  99. path: '/profile/reset/{uid}'
  100. defaults:
  101. _controller: 'DrupaluserControllerUserController::getResetPassForm'
  102. _title: 'Reset password'
  103. requirements:
  104. _user_is_logged_in: 'FALSE'
  105. options:
  106. _maintenance_access: TRUE
  107. no_cache: TRUE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement