The focus here is to implement a very simple remember-me flow for our login page.
If you're using the git repository to get the project - you should be using the module3 branch.
The relevant module you need to import when you're starting with this lesson is: lssc-module3/m3-lesson1
If you want to skip and see the complete implementation, feel free to jump ahead and import: lssc-module3/m3-lesson2
The credentials used in the code of this lesson are: test@email.com/pass (data.sql).
First, we’re going to enable the basic remember-me functionality in the security config:
.rememberMe().key("lssAppKey")
We are then going to add the remember-me checkbox on the login page:
<input id="remember" type="checkbox" name="remember-me" value="true" />
Finally, we are going to test by following two scenarios:
Scenario 1:
Scenario 2: