Opened 9 years ago

Closed 9 years ago

#13797 closed (wontfix)

Login and logout views could optionally post a message to the user

Reported by: Mitar Owned by: nobody
Component: contrib.auth Version: 1.2
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Login and logout views could optionally (a setting or view argument could be None by default) post a message to the user informing her that she has been logged in or logged out. In this way user could be informed of this (it is important that user understands what is happening in the background) while redirecting to some other page and not just to the page where this is explicitly written. Like adding additional message parameter to views and then do:

if message:
    messages.success(request, message, fail_silently=True)

Messages could be simply (by default) _("You have successfully logged out.") and _("You have successfully logged in.").

This could be solved also with #5612 but maybe it would be useful to have it in views directly.

Change History (1)

comment:1 Changed 9 years ago by Russell Keith-Magee

Resolution: wontfix
Status: newclosed

Closing wontfix; #5612 is the right approach for this.

Note: See TracTickets for help on using tickets.
Back to Top