mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
082db89550
- Move the success and message to a validationresult - Fix tests for validationresult return - We need to clear the session in Test logOut method - Rename to MemberAuthenticator and CMSMemberAuthenticator for consistency. - Unify all to getCurrentUser on Security - ChangePasswordHandler removed from Security - Update SapphireTest for CMS login/logout - Get the Member ID correctly, if it's an object. - Only enable "remember me" when it's allowed. - Add flag to disable password logging - Remove Subsites coupling, give it an extension hook to disable itself - Change cascadeLogInTo to cascadeInTo for the logout method logic naming - Docblocks - Basicauth config
20 lines
614 B
Gherkin
20 lines
614 B
Gherkin
# features/login.feature
|
|
Feature: Log in
|
|
As an site owner
|
|
I want to access to the CMS to be secure
|
|
So that only my team can make content changes
|
|
|
|
Scenario: Bad login
|
|
Given I log in with "bad@example.com" and "badpassword"
|
|
Then I should see "The provided details don't seem to be correct"
|
|
|
|
Scenario: Valid login
|
|
Given I am logged in with "ADMIN" permissions
|
|
When I go to "/admin/"
|
|
Then I should see the CMS
|
|
|
|
Scenario: /admin/ redirect for not logged in user
|
|
# disable automatic redirection so we can use the profiler
|
|
When I go to "/admin/"
|
|
And I should see a log-in form
|