Skip to content

Commit

Permalink
added remember me feature ✨
Browse files Browse the repository at this point in the history
  • Loading branch information
Petrovich-A committed Jul 10, 2023
1 parent f405c0e commit 1262b80
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.Customizer;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
Expand Down Expand Up @@ -38,7 +39,8 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
.invalidateHttpSession(true)
.clearAuthentication(true)
.permitAll()
);
)
.rememberMe(Customizer.withDefaults());
return http.build();
}

Expand Down

0 comments on commit 1262b80

Please sign in to comment.