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

Fix 3040, Redirect to login page in case of Unauthorized #3092

Merged
merged 8 commits into from
Feb 25, 2015

Conversation

anuragkanungo
Copy link
Contributor

Fixes #3040

case 403:
// Redirect to Login Page and add the current url as next
window.location.href = USER_LOGIN_URL + "?next=" + window.location.href

This comment was marked as spam.

@aronasorman
Copy link
Collaborator

Please write a test for this.


PLAYLIST_ID = "g3_p1"
import urllib

This comment was marked as spam.

@anuragkanungo
Copy link
Contributor Author

Hi @jamalex , can you help me figure out the problem.
As the test which is failing is the one I added and it works fine on my laptop. (It pass)
But it fails for travis.

@MCGallaspy
Copy link
Contributor

@anuragkanungo some of the tests seem to be dependent on the conditions of the machine running them, and we're working to remove these non-deterministic features from the tests. I restarted the build, but if it fails again then someone (perhaps me?) will test it manually before merging.

@aronasorman
Copy link
Collaborator

I'll merge this now, since the fix is needed for a classroom taking a test today. @anuragkanungo please try to investigate why this is failing.

aronasorman added a commit that referenced this pull request Feb 25, 2015
Fix 3040, Redirect to login page in case of Unauthorized
@aronasorman aronasorman merged commit 7c9085b into learningequality:nalanda-rct3 Feb 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants