-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #587 from systemli/feat/locale_listener
feat(l10n): Remove URL-based localized routes, store locale in session
- Loading branch information
Showing
27 changed files
with
358 additions
and
278 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,7 @@ | ||
2fa_login: | ||
path: /{_locale}/2fa | ||
defaults: | ||
_controller: "scheb_two_factor.form_controller::form" | ||
requirements: | ||
_locale: '%locales%' | ||
|
||
2fa_login_check: | ||
path: /{_locale}/2fa_check | ||
requirements: | ||
_locale: '%locales%' | ||
|
||
2fa_login_fallback: | ||
path: /2fa | ||
defaults: | ||
_controller: "scheb_two_factor.form_controller::form" | ||
|
||
2fa_login_check_fallback: | ||
2fa_login_check: | ||
path: /2fa_check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ Feature: Admin | |
@admin | ||
Scenario: Access to Admin Interface as Admin | ||
When I am on "/admin/dashboard" | ||
Then I should be on "/en/login" | ||
Then I should be on "/login" | ||
And the response status code should be 200 | ||
|
||
When I am authenticated as "[email protected]" | ||
|
@@ -218,4 +218,4 @@ Feature: Admin | |
And I press "OK" | ||
Then I should be on "/admin/user/batch" | ||
And I press "Yes, execute" | ||
Then I should be on "/en/login" | ||
Then I should be on "/login" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.