Expose actual authentication errors for debugging (#1182)

This commit is contained in:
Mars Lan 2018-05-23 15:05:41 -07:00 committed by GitHub
parent 4cb324861a
commit ff7a0cd9ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -342,7 +342,8 @@ public class Application extends Controller {
try {
AuthenticationManager.authenticateUser(username, password);
} catch (Exception e) {
return badRequest("Invalid credentials");
Logger.warn("Authentication error!", e);
return badRequest(e.getMessage());
}
// Adds the username to the session cookie