Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#26558 closed Bug (fixed)

"different account" notice in login form depend on request context processor

Reported by: Claude Paroz Owned by: Dan Stephenson
Component: contrib.admin Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

When the notice "You are authenticated as {{ username }}, but ..." (added as of #25163) is displayed on the admin login page, the username variable presence depends on the request context processor being present in the OPTIONS['context_processors'] key of the TEMPLATES setting. If not, you get:
You are authenticated as , but are not authorized to access this page. Would you like to login to a different account?

Maybe it's possible to feed the context with the username variable in the view instead?

Change History (5)

comment:1 Changed 3 years ago by Tim Graham

Triage Stage: UnreviewedAccepted

Sure, would be fine to backport that too if you'd like.

comment:2 Changed 3 years ago by Dan Stephenson

Owner: changed from nobody to Dan Stephenson
Status: newassigned

comment:3 Changed 3 years ago by Tim Graham

Has patch: set
Triage Stage: AcceptedReady for checkin

comment:4 Changed 3 years ago by Tim Graham <timograham@…>

Resolution: fixed
Status: assignedclosed

In 1206eea:

Fixed #26558 -- Removed need for request context processor on admin login page.

comment:5 Changed 3 years ago by Tim Graham <timograham@…>

In 90ea14a:

[1.9.x] Fixed #26558 -- Removed need for request context processor on admin login page.

Backport of 1206eea11e506c4e740ba2f0c1feaa01452d804b from master

Note: See TracTickets for help on using tickets.
Back to Top