mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-30 20:15:56 +00:00
Expose actual authentication errors for debugging (#1182)
This commit is contained in:
parent
4cb324861a
commit
ff7a0cd9ee
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user