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

Fixes login issues with JS #2348

Merged
merged 1 commit into from May 24, 2013

Conversation

ares
Copy link
Contributor

@ares ares commented May 22, 2013

When user entered wrong credentials a login screen still tried to fetch
allowed organizations. Also an error notification was not displayed.

@ares
Copy link
Contributor Author

ares commented May 22, 2013

$('#login_form').bind('ajax:complete', function(event, request) {
var status = request.status;

if (status >= 400 && status < 500) {
Copy link
Member

Choose a reason for hiding this comment

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

Why '< 500' ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@iNecas is it clearer now?

When user entered wrong credentials a login screen still tried to fetch
allowed organizations. Also an error notification was not displayed.
@iNecas
Copy link
Member

iNecas commented May 22, 2013

ACK

@waldenraines
Copy link
Contributor

Double ACK, thanks for fixing.

ares added a commit that referenced this pull request May 24, 2013
@ares ares merged commit b7eb312 into Katello:master May 24, 2013
@ares ares deleted the bug/login_unauthenticated_requests branch May 24, 2013 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants