Commit 5726f6ed authored by webchick's avatar webchick

Issue #2303391 by gvso, idebr, AkshayKalose, gaurav_varshney, dinarcon,...

Issue #2303391 by gvso, idebr, AkshayKalose, gaurav_varshney, dinarcon, kporras07, vaibhavjain, msound, alexpott: Tab 'Log in' shows on 'Request new password page for logged-in users and is missing for logged-out users
parent cf7565d7
......@@ -47,13 +47,10 @@ public function getUserAdminRoutes() {
*
* @dataProvider getUserLoginRoutes
*/
public function testUserLoginLocalTasks($route, $subtask = array()) {
public function testUserLoginLocalTasks($route) {
$tasks = array(
0 => array('user.page', 'user.register', 'user.pass',),
0 => array('user.register', 'user.pass', 'user.login',),
);
if ($subtask) {
$tasks[] = $subtask;
}
$this->assertLocalTasks($route, $tasks);
}
......@@ -62,8 +59,7 @@ public function testUserLoginLocalTasks($route, $subtask = array()) {
*/
public function getUserLoginRoutes() {
return array(
array('user.page', array('user.login',)),
array('user.login', array('user.login',)),
array('user.login'),
array('user.register'),
array('user.pass'),
);
......
entity.user_role.edit_form:
title: 'Edit'
route_name: entity.user_role.edit_form
......@@ -9,24 +8,22 @@ user.account_settings_tab:
title: 'Settings'
base_route: entity.user.admin_form
user.page:
route_name: user.page
base_route: user.page
title: 'Log in'
weight: -10
user.register:
route_name: user.register
base_route: user.page
title: 'Create new account'
user.pass:
route_name: user.pass
base_route: user.page
title: 'Reset your password'
# Other authentication methods may add pages below user/login/.
user.login:
route_name: user.login
parent_id: user.page
title: 'Username and password'
base_route: user.page
title: 'Log in'
weight: -10
entity.user.canonical:
route_name: entity.user.canonical
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment