Remove formLogin settings for JWT
This commit is contained in:
@@ -44,7 +44,7 @@ public class AuthController {
|
||||
return "user/signIn";
|
||||
}
|
||||
|
||||
@PostMapping
|
||||
@PostMapping("/signIn")
|
||||
public ResponseEntity<TokenDto> signIn(@Validated UserSignInRequest signInReq) {
|
||||
return authService.signIn(signInReq);
|
||||
}
|
||||
|
||||
@@ -42,12 +42,12 @@ public class SecurityConfig {
|
||||
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
|
||||
//
|
||||
http
|
||||
.csrf().disable()
|
||||
.formLogin()
|
||||
.loginPage("/auth/signIn")
|
||||
.usernameParameter("email")
|
||||
.defaultSuccessUrl("/")
|
||||
.failureUrl("/auth/signIn?fail=true");
|
||||
.csrf().disable();
|
||||
// .formLogin()
|
||||
// .loginPage("/auth/signIn")
|
||||
// .usernameParameter("email")
|
||||
// .defaultSuccessUrl("/")
|
||||
// .failureUrl("/auth/signIn?fail=true");
|
||||
|
||||
//
|
||||
http
|
||||
|
||||
Reference in New Issue
Block a user