Handle validated users without profiles

Signed-off-by: Thomas Citharel <tcit@tcit.fr>

Format

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2019-01-30 15:54:21 +01:00
parent 681653e035
commit ce65c992d3
6 changed files with 34 additions and 13 deletions

View File

@@ -46,7 +46,8 @@ export default [
path: '/validate/:token',
name: 'Validate',
component: Validate,
props: true,
// We can only pass string values through params, therefore
props: (route) => ({ email: route.params.email, userAlreadyActivated: route.params.userAlreadyActivated === 'true'}),
meta: { requiresAuth: false },
},
{