Skip to content
This repository has been archived by the owner on Sep 12, 2018. It is now read-only.

Commit

Permalink
Merge branch 'enhance/remote-message-for-git-auth-failure' of dlab/hive
Browse files Browse the repository at this point in the history
from pull-request 1339

* refs/heads/enhance/remote-message-for-git-auth-failure:
  Git: Show remote message for authentication failure

Reviewed-by: 김창근 <changgun.kim@nhn.com>
  • Loading branch information
이응준 committed Oct 23, 2014
2 parents 6a52da2 + fe129a5 commit 8e2a567
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/utils/BasicAuthAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static Result unauthorized(Response response) {

String challenge = "Basic realm=\"" + REALM + "\"";
response.setHeader(Http.HeaderNames.WWW_AUTHENTICATE, challenge);
return unauthorized();
return unauthorized("Invalid username or password");
}

public static User parseCredentials(String credentials) throws MalformedCredentialsException, UnsupportedEncodingException {
Expand Down

0 comments on commit 8e2a567

Please sign in to comment.