mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-28 12:43:11 +10:00
Prefer login page for email confirmation
This commit is contained in:
parent
8d9c078309
commit
01dbdafbec
2 changed files with 5 additions and 2 deletions
|
|
@ -60,7 +60,9 @@ describe('Application', () => {
|
|||
});
|
||||
|
||||
it('server renders redirects for pages that require authentication', () => {
|
||||
const defaultAuthPath = '/signup';
|
||||
const loginPath = '/login';
|
||||
const signupPath = '/signup';
|
||||
const defaultAuthPath = signupPath;
|
||||
const urlRedirects = {
|
||||
'/l/new': defaultAuthPath,
|
||||
'/l/listing-title-slug/1234/new/description': defaultAuthPath,
|
||||
|
|
@ -80,7 +82,7 @@ describe('Application', () => {
|
|||
'/account/contact-details': defaultAuthPath,
|
||||
'/account/payout-preferences': defaultAuthPath,
|
||||
'/account/security': defaultAuthPath,
|
||||
'/email_verification': defaultAuthPath,
|
||||
'/email_verification': loginPath,
|
||||
};
|
||||
forEach(urlRedirects, (redirectPath, url) => {
|
||||
const context = {};
|
||||
|
|
|
|||
|
|
@ -309,6 +309,7 @@ const routesConfiguration = [
|
|||
{
|
||||
path: '/email_verification',
|
||||
auth: true,
|
||||
preferLogin: true,
|
||||
exact: true,
|
||||
name: 'EmailVerificationPage',
|
||||
component: props => <EmailVerificationPage {...props} />,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue