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

Automatically logout after token expires #106

Merged
merged 3 commits into from
Oct 22, 2017
Merged

Conversation

simonrozsival
Copy link
Member

No description provided.

@SemaiCZE SemaiCZE self-requested a review October 18, 2017 12:11
@Neloop Neloop self-requested a review October 18, 2017 12:35
Neloop
Neloop previously requested changes Oct 18, 2017
Copy link
Member

@Neloop Neloop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong credentials return 401 from api. This leads to wrong notification "Invalid token".
Maybe change here: https://github.com/ReCodEx/api/blob/master/app/exceptions/WrongCredentialsException.php#L17 will be needed

@Neloop Neloop mentioned this pull request Oct 21, 2017
@simonrozsival simonrozsival dismissed Neloop’s stale review October 22, 2017 20:19

After discussion we decided to change the API to return 400 instead of 401 for the login request.

Copy link
Member

@Neloop Neloop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong credentials will have 400 http code in api.

@SemaiCZE SemaiCZE merged commit ece5648 into master Oct 22, 2017
@SemaiCZE SemaiCZE deleted the fix-token-expiration branch October 22, 2017 20:24
@Neloop
Copy link
Member

Neloop commented Oct 22, 2017

Fixes #111

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.

None yet

3 participants