From a4984ca800bc79d2ace2cf2588f60fbf2aa622b5 Mon Sep 17 00:00:00 2001 From: Nikhil Date: Wed, 22 Apr 2020 21:45:43 +0800 Subject: [PATCH] change login url to a better name; redirect user and store their current url --- README.md | 4 ++-- app/ui/header.js | 4 +++- server/clientConstants.js | 2 +- server/config.js | 6 +++--- server/middleware/auth.js | 9 +++++++-- server/state.js | 2 +- 6 files changed, 17 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 220c0fe5a..bcaf541d1 100644 --- a/README.md +++ b/README.md @@ -5,19 +5,19 @@ To run locally, run `npm run start-dev`. Make sure you have the following enviro AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY -LOGIN_URL +VAULT_FRONTEND_URL LOGGING_URL JWT_SECRET Things to ensure: - That the JWT secret is the same as the one used in the original backend -- The login url doesn't have to be the precise URL, it can just be vault.gov.sg, which will then trigger another redirect - logging_url is to note down all the actions done by the user To deploy, run `npm run build` and manually deploy the zip file to the appropriate env Original readme follows: + # [![Firefox Send](./assets/icon.svg)](https://send.firefox.com/) Firefox Send [![CircleCI](https://img.shields.io/circleci/project/github/mozilla/send.svg)](https://circleci.com/gh/mozilla/send) diff --git a/app/ui/header.js b/app/ui/header.js index bcf4711d0..fbd9781c3 100644 --- a/app/ui/header.js +++ b/app/ui/header.js @@ -27,7 +27,9 @@ class Header extends Component { : html`