Skip to content
Snippets Groups Projects
Commit 6dc268bd authored by Benoit Alessandroni's avatar Benoit Alessandroni
Browse files

Proper entrepreneur redirect

parent 41f310f4
No related branches found
No related tags found
1 merge request!4Feature/editing a resource
include ../components/widgets
h2 Create an entrepreneur account h2 Create an entrepreneur account
sib-form( sib-form(
...@@ -20,6 +22,9 @@ sib-form( ...@@ -20,6 +22,9 @@ sib-form(
multiple-organisation='sib-multiple-select' multiple-organisation='sib-multiple-select'
widget-organisation='sib-form-auto-completion' widget-organisation='sib-form-auto-completion'
widget-user.password='cs-form-password'
widget-user.password_confirmation='cs-form-password'
submit-button="CREATE AN ACCOUNT" submit-button="CREATE AN ACCOUNT"
) )
...@@ -2,7 +2,7 @@ sib-router ...@@ -2,7 +2,7 @@ sib-router
sib-route(name='mentor-login') sib-route(name='mentor-login')
sib-route(name='entrepreneur-login') sib-route(name='entrepreneur-login')
h2 Welcome to your international index of resources for cooperative mentors and entrepreneurs h2 Welcome to our international index of resources for cooperative mentors and entrepreneurs
sib-link(next='mentor-login') sib-link(next='mentor-login')
div I am a mentor div I am a mentor
......
...@@ -7,13 +7,13 @@ html ...@@ -7,13 +7,13 @@ html
sib-route(name='mentor-new-account') sib-route(name='mentor-new-account')
sib-route(name='entrepreneur-new-account') sib-route(name='entrepreneur-new-account')
sib-route(name='mentor-dashboard') sib-route(name='mentor-dashboard')
sib-route(name='entrepreneur-search-page') sib-route(name='entrepreneur-dashboard')
body body
#mentor-dashboard(hidden).no-sidebar #mentor-dashboard(hidden).no-sidebar
include includes/mentor/dashboard.pug include includes/mentor/dashboard.pug
#entrepreneur-search-page(hidden).no-sidebar #entrepreneur-dashboard(hidden).no-sidebar
include includes/entrepreneur/dashboard.pug include includes/entrepreneur/dashboard.pug
#splash(hidden).no-sidebar #splash(hidden).no-sidebar
...@@ -53,11 +53,9 @@ script(type='module'). ...@@ -53,11 +53,9 @@ script(type='module').
let idToken = await sibAuth.getUserIdToken(); let idToken = await sibAuth.getUserIdToken();
if ( !user ) { if ( !user ) {
console.log("You're not logged in");
return; return;
} }
user = await store.get(user); user = await store.get(user);
console.log('Retrieved user', user);
if (user && user.mentor_profile) { if (user && user.mentor_profile) {
window.dispatchEvent( window.dispatchEvent(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment