Problem/Motivation

Currently the registration form is cached. It sets the "max-age" to 0 for logged in users, but in some cases the cached form is getting displayed before it gets to that.

Steps to reproduce

Proposed resolution

Add 'contexts' => ['user'] to the #cache section. This will ensure that caching takes place per user, so no user will see a cached form for another user.

Remaining tasks

Update caching context.

User interface changes

None.

API changes

None.

Data model changes

None.

Issue fork conreg-3588090

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

lostcarpark created an issue. See original summary.

  • lostcarpark committed 4a294750 on 1.x
    feat: #3588090 Use User Context to ensure user data never shown to other...
lostcarpark’s picture

Added user context and released alpha4.

lostcarpark’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.