Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix(sso): 500 on admin login (#5334) #5363

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

rgraber
Copy link
Contributor

@rgraber rgraber commented Dec 17, 2024

Port of kpi#5334

Fixes a 500 being thrown when a non-superuser goes to /admin and then
tries to log in as a superuser.

Upgrade django-allauth to 65.1.0.

The simplest solution seemed to be just to upgrade django-allauth. It's
unclear which exact commit fixes the bug and we are very behind in
versions so upgraded to the latest. Nothing obvious broke except one
unit test.

Bug template:
1. ℹ️ Have 2 accounts, one super and one not
2. Log in as the non-superuser
3. Go to /admin
4. You should be redirected to the login page.
5. Log in as the super user
6. 🔴 [on main] 500 error
7. Checkout the PR branch. Make sure to reinstall requirements.
8. Do 1-5 again.
9. 🟢 [on PR] You should be correctly logged in and sent to the admin
page
@rgraber rgraber requested a review from noliveleger December 17, 2024 15:55
@rgraber rgraber merged commit d829f15 into release/2.024.36 Dec 17, 2024
6 checks passed
@rgraber rgraber deleted the rsgraber/TASK-1188-patch branch December 17, 2024 17:14
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants