NHS Record a vaccination would like to connect your account
+ +If you grant access, the application will be able to access your email address and account ID.
+ + + + + + + + +diff --git a/app/assets/sass/components/_button.scss b/app/assets/sass/components/_button.scss index 29dc629f..b5b27a83 100644 --- a/app/assets/sass/components/_button.scss +++ b/app/assets/sass/components/_button.scss @@ -3,6 +3,10 @@ min-width: 80px; } +.app-button--min-width-2 { + min-width: 300px; +} + // Make buttons full width on mobile // This is temporary until https://github.com/nhsuk/nhsuk-frontend/pull/1309 is merged .nhsuk-button { diff --git a/app/routes/auth.js b/app/routes/auth.js index 04e5b2c5..588f2d19 100644 --- a/app/routes/auth.js +++ b/app/routes/auth.js @@ -6,7 +6,13 @@ module.exports = router => { const email = data.email || "jane.smith@nhs.net" const user = data.users.find((user) => user.email === email) - if (!user) { + if (email === 'freda.pink@nhs.net') { + res.redirect('/auth/user-not-recognised') + return + } else if (email === 'james.blue@nhs.net') { + res.redirect('/auth/keycloak-existing-account-new-login') + return + } else if (!user) { res.redirect('/auth/okta-sign-in') return } diff --git a/app/views/auth/keycloak-existing-account-new-login.html b/app/views/auth/keycloak-existing-account-new-login.html new file mode 100644 index 00000000..27707a6a --- /dev/null +++ b/app/views/auth/keycloak-existing-account-new-login.html @@ -0,0 +1,24 @@ +{% extends 'layout.html' %} + +{% set pageName = "Sign in" %} + +{% block content %} +
Your email address {{ data.email }} is linked to a different log in option.
+ +You need to log in with the option you used previously.
+ +We will then link both options to your RAVS account, and in future you will be able to log in with either.
+ + {{ button({ + text: "Continue", + href: "/auth/log-in" + }) }} + +or
+ +If you grant access, the application will be able to access your email address and account ID.
+ + + + + + + + +Log in as:
+ + +If you change your mind, go to Settings.
+ + + +There is no Record a vaccination (RAVS) account for {{ data.email }}.
+ +If you’ve previously used RAVS, try logging in with the email address you used last time.
+ +If you've never used RAVS before, you'll need to be invited by a colleague to use the service.
+ +or log in
+or log in