mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX Log in as someone else returns user back to login screen
This commit is contained in:
parent
ed0ed89865
commit
a5ca4ecb59
@ -109,6 +109,6 @@ class LogoutHandler extends RequestHandler
|
||||
return $this->redirect($backURL);
|
||||
}
|
||||
|
||||
return $this->redirect(Director::absoluteBaseURL());
|
||||
return $this->redirect(Security::config()->get('login_url'));
|
||||
}
|
||||
}
|
||||
|
@ -25,3 +25,11 @@ Feature: Log in
|
||||
When I press the "Log out" button
|
||||
And I go to "/admin/"
|
||||
Then I should see a log-in form
|
||||
|
||||
Scenario: Log in as someone else
|
||||
Given I am logged in with "ADMIN" permissions
|
||||
When I go to "/Security/login"
|
||||
Then the response should contain "Log in as someone else"
|
||||
|
||||
When I press the "Log in as someone else" button
|
||||
Then I should see a log-in form
|
||||
|
Loading…
Reference in New Issue
Block a user