Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always redirected to login screen after logging out #748

Open
pstenstrm opened this issue Aug 26, 2016 · 3 comments
Open

Always redirected to login screen after logging out #748

pstenstrm opened this issue Aug 26, 2016 · 3 comments

Comments

@pstenstrm
Copy link
Contributor

Description

After logging out of the app I can not navigate anywhere. I'm not sure if this is an issue with the frontend or just_match_api

Severity:

  • Can not perform action

URL: Any public URL

Error message:

https://just-match-api-staging.herokuapp.com/api/v1/terms-agreements/current-company 401 (Unauthorized)
angular.js:11881 XHR finished loading: GET "https://just-match-api-staging.herokuapp.com/api/v1/terms-agreements/current-company".(anonymous function) @ angular.js:11881sendReq @ angular.js:11642serverRequest @ angular.js:11352processQueue @ angular.js:16170(anonymous function) @ angular.js:16186$eval @ angular.js:17444$digest @ angular.js:17257$apply @ angular.js:17552(anonymous function) @ angular.js:13457dispatch @ jquery.min.js:3r.handle @ jquery.min.js:3

Role: Not logged in

How to recreate it

  1. Log in with any type of user
  2. Log out
  3. Click the JustArrived logo

What happend
I got redirected back to the log in screen

Expected outcome
Navigate to the starpage

Browser (check what browser you're running at https://whatbrowser.org): OSX Chrome 52

@pstenstrm pstenstrm changed the title Always redirect to login screen after logging out Always redirected to login screen after logging out Aug 26, 2016
@buren
Copy link
Member

buren commented Aug 27, 2016

Ah, nice! This is due to the promo code being active. Good catch!

👍

@buren buren added the bug label Aug 27, 2016
@buren
Copy link
Member

buren commented Aug 27, 2016

Marked this as a bug as it causes unexpected/unwanted behaviour, which will no doubt confuse the user.

@pstenstrm
Copy link
Contributor Author

This also happens when I try to enter the promo code. #/?promo_code=[code] is redirected to #/user/signin?promo_code=[code].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants