Skip to content

Add remember-me checkbox to the reference login form #79

Description

@devondragon

Summary

The login form at src/main/resources/templates/user/login.html posts only username and password (lines 58-73). Once remember-me support is completed in the framework (devondragon/SpringUserFramework#351), the reference login form should exercise it: without a remember-me request parameter, Spring Security's AbstractRememberMeServices never issues a cookie, so the feature is unreachable from the documented login path.

Work

Add a checkbox to the login form:

<div class="form-check">
    <input type="checkbox" id="remember-me" name="remember-me" class="form-check-input">
    <label for="remember-me" class="form-check-label">Remember me</label>
</div>

The parameter name must match the framework's rememberMeParameter (default remember-me).

Depends on

devondragon/SpringUserFramework#351 — this form change is a no-op until the framework side ships. The checkbox is harmless to add early (the parameter is ignored when remember-me is disabled), but Playwright coverage of the cookie flow needs the framework change first.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions