#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 , 9 years ago
| Triage Stage: | Unreviewed → Accepted |
|---|
comment:2 by , 9 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
Note:
See TracTickets
for help on using tickets.
Sure, would be fine to backport that too if you'd like.