-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong redirection after successful authentication to the admin page #222
Comments
Experiencing the same issue, it appears the form is appearing twice, if you scroll down to the second form it appears to show "successfully logged in" and the otp form redirects properly. |
There is the following code in Wagtail's skeleton template:
and the script Looks like it's enough to add that url to VerifyUserMiddleware._allowed_url_names in order to fix the issue. As a temporary solution I subclassed the original VerifyUserMiddleware adding "wagtailadmin_sprite" to _allowed_url_names:
and then using the customized middleware in my project. |
looks like this was fixed by #219 |
After successful authentication to the admin page, redirection to the always the same non-existing address "/admin/sprite-8cfe9c6c/" sometimes occurs instead of registered URL-path "/admin/" (wagtail admin).
/admin/sprite-8cfe9c6c/ is the empty (blank) page without Wagtail's admin page menus.
The Wagtail version is 5.0.2.
The Django version is 4.2.3.
Changing the Django version to 4.0.10 does not influence the issue.
The text was updated successfully, but these errors were encountered: