Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #19334 [Security] Fix the retrieval of the last username when usi…
…ng forwarding (stof) This PR was merged into the 2.7 branch. Discussion ---------- [Security] Fix the retrieval of the last username when using forwarding | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a When using forwarding to render the login page (which is not the default), the info are stored in the subrequest attributes rather than the session. ``getLastAuthenticationError`` was handling this properly but ``getLastUsername`` was not checking the attributes. This fixes it by checking the attributes (I'm checking them before the session, to be consistent with ``getLastAuthenticationError``) Commits ------- e041365 Fix the retrieval of the last username when using forwarding
- Loading branch information