cookiecutter-django icon indicating copy to clipboard operation
cookiecutter-django copied to clipboard

Add setting to hide the intermediary logout page

Open wgordon17 opened this issue 6 years ago • 1 comments

Description

I would like to avoid showing the unnecessary, intermediary confirmation signout page.

The need for an intermediary page is documented in the django-allauth docs: https://django-allauth.readthedocs.io/en/latest/views.html#logout-account-logout

This change will still use the intermediary logout page, but instead auto-submit the form via JavaScript. This has the added benefit of still degrading to using the form in the case that JavaScript is disabled.

The concept comes from an old Django issue: https://code.djangoproject.com/ticket/15619#comment:38

Rationale

This is something that I believe would benefit the larger community. It's an optional feature with the default value ensuring that it does not change the expected behavior.

Use case(s) / visualization(s)

This hides an unnecessary, intermediary page and increases user UX by preventing clicks where not necessary.

wgordon17 avatar Jan 31 '19 19:01 wgordon17

I have been searching for a solution for this... I am merging this to my project now.

BoPeng avatar Jan 27 '20 18:01 BoPeng