I recently implemented a simple password lookup with a password in my django project. The fact is that the old session should be destroyed for security reasons. What is the best way to do this without asking the user to log in again.
I think I can just exit / enter it, something like this:
from django.contrib.auth import login as auth_login from django.contrib.auth import logout as auth_logout @login_required def change_password(request):
But I think this is not a good idea. What do you think?
Is there any other way to do this?
Am I missing something? (I mean, it's safe)
source share