forked from ministryofjustice/peoplefinder
-
Notifications
You must be signed in to change notification settings - Fork 2
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 #29 from cabinetoffice/downing-fix
Fixes issues for those on No.10 platforms
- Loading branch information
Showing
5 changed files
with
32 additions
and
9 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,3 +1,13 @@ | ||
%h1.visuallyhidden= @page_title = 'Login failure' | ||
%h2.h3.no-line You need to log in with a Cabinet Office email address | ||
%p= link_to 'Return to the log in screen', '/' | ||
- content_for :body_classes, 'failed-page' | ||
|
||
%h1.no-line Sorry, that didn't work | ||
|
||
%h2.h3.no-line We couldn't verify your details, so we couldn't log you in. | ||
|
||
%p It might be that you haven't logged in using your Cabinet Office email address, or perhaps something else isn't right. | ||
|
||
.spacer-5 | ||
.spacer-5 | ||
.spacer-5 | ||
|
||
%p= link_to 'Go back', '/', class: 'button login-button' |
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,3 +1,7 @@ | ||
# Be sure to restart your server when you modify this file. | ||
|
||
Rails.application.config.session_store :cookie_store, key: '_moj_peoplefinder_session' | ||
if Rails.env.production? or Rails.env.staging? | ||
Rails.application.config.session_store :cookie_store, :key => '_co_peoplefinder_session', :domain => 'peoplefinder.cabinetoffice.gov.uk' | ||
else | ||
Rails.application.config.session_store :cookie_store, :key => '_co_peoplefinder_session' | ||
end |
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