When a user requests a password reset, he will be redirected to /password/reset/done/
which tells the user that 'We have sent you an e-mail...', but if you directly go to that page, you get the same information, which is a little bit confusing since no email's sent to anyone.
Is there a variable which can be used in password_reset_done.html
template like {{ messages }}
so that with if
conditions other content can show up for direct visitors? If not, is there a way to do this?
EDIT:
Please don't be hasty on labeling this as a duplicate question of How to use the built-in 'password_reset' view in Django?.
I do know how to show up that page /password/reset/done/
, which is basically a stage specifically used for telling a user that "we've sent you an email so that you can follow the link to reset your password...", while the question you are refering to is about how to correctly redirect a user when password reset is successful.
What I'm looking for is a way to either rediret it to another page or show some different stuff when a user is trying to directly surf that page(well people do that sometimes) which is supposed to be viewed after he successfully submitted a password reset request. I need some kind of hook to make it work.