Redirect invited guests to register
If the user logs in through the frontpage we now check if they have completed the registration process. If they have completed it halfway before, we find their info through the GregUserProfile of the user and redirect to the register page. If we dont find any profile connected to the user they are treated as anonymous users as before. Resolves: GREG-164
Showing
- frontend/src/contexts/userContext.ts 1 addition, 0 deletionsfrontend/src/contexts/userContext.ts
- frontend/src/interfaces/index.ts 1 addition, 0 deletionsfrontend/src/interfaces/index.ts
- frontend/src/providers/userProvider.tsx 10 additions, 1 deletionfrontend/src/providers/userProvider.tsx
- frontend/src/routes/landing/index.tsx 3 additions, 0 deletionsfrontend/src/routes/landing/index.tsx
- gregui/api/views/invitation.py 25 additions, 5 deletionsgregui/api/views/invitation.py
- gregui/api/views/userinfo.py 2 additions, 0 deletionsgregui/api/views/userinfo.py
- gregui/tests/api/views/test_userinfo.py 3 additions, 0 deletionsgregui/tests/api/views/test_userinfo.py
Loading
Please register or sign in to comment