Skip to content

make:auth Login form: we should add RememberMeBadge #848

@weaverryan

Description

@weaverryan

In the new authenticator system, if you want to support "remember me" functionality, then your authenticator needs to return a RememberMeBadge. This advertises that it is "ok to activate remember me on this authenticator". It is safe to always add in our generated code because if the user doesn't have remember me activated (either in config or they don't have the remember me checkbox), nothing will happen. For example, it is ALWAYS returned from the core FormLoginAuthenticator.

Probably we will also need one comment line above the new badge to explain its purpose.

EDIT: And I wonder if we should even ask "Do you want to support remember me?" during this process? We could then ask "Do you want remember me to be activated via a checkbox or always activated"? We could use this to determine how the template is generated AND to automatically add the correct remember_me config to security.yaml.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions