mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
Fix code style issues
This commit is contained in:
@@ -95,8 +95,9 @@ public class AuthenticationRestController implements InitializingBean {
|
||||
"Authentication failed for user " + user + ": The credentials you provided are not " +
|
||||
"valid.");
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/login", method = {RequestMethod.GET, RequestMethod.PUT, RequestMethod.PATCH, RequestMethod.DELETE})
|
||||
|
||||
@RequestMapping(value = "/login", method = { RequestMethod.GET, RequestMethod.PUT, RequestMethod.PATCH,
|
||||
RequestMethod.DELETE })
|
||||
public ResponseEntity login() {
|
||||
return ResponseEntity.status(HttpStatus.METHOD_NOT_ALLOWED).body("Only POST is allowed for login requests.");
|
||||
}
|
||||
|
@@ -52,8 +52,7 @@ public class WebSecurityConfiguration extends WebSecurityConfigurerAdapter {
|
||||
private CustomLogoutHandler customLogoutHandler;
|
||||
|
||||
@Override
|
||||
public void configure(WebSecurity webSecurity) throws Exception
|
||||
{
|
||||
public void configure(WebSecurity webSecurity) throws Exception {
|
||||
webSecurity
|
||||
.ignoring()
|
||||
.antMatchers(HttpMethod.GET, "/api/authn/login")
|
||||
|
Reference in New Issue
Block a user