Opened 9 years ago

Closed 9 years ago

Last modified 9 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: dev
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 by Tim Graham, 9 years ago

Triage Stage: UnreviewedAccepted

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

comment:2 by Dan Stephenson, 9 years ago

Owner: changed from nobody to Dan Stephenson
Status: newassigned

comment:3 by Tim Graham, 9 years ago

Has patch: set
Triage Stage: AcceptedReady for checkin

comment:4 by Tim Graham <timograham@…>, 9 years ago

Resolution: fixed
Status: assignedclosed

In 1206eea:

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

comment:5 by Tim Graham <timograham@…>, 9 years ago

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