M
M
Michael2017-09-25 01:34:39
Django
Michael, 2017-09-25 01:34:39

How to make a "remember me" button on a django website?

Hello, I'm interested in the question of how to make a functional that would remember the username and password of the user.
Those. in the login form there will be 2 checkboxes, remember the login and remember the password of your choice.
Is it possible.
Prompt a direction where to dig.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Impeeeery, 2017-09-25
@Impeeeery

"remember me" is actually the lifespan of cookies, and not autosaving of the password and login,
what you want is done through localStorage on the client ( encrypt! ), or if you want to bind to IP (not browser) - then on the server (to which an AJAX request is being made), I don’t know what to choose right away, but with IP there is a big minus - if it changes (dynamic) at that moment, it will fly off.
right now they will say that this feature is already in browsers and home-made nafig is not needed, no one has seen such a monster on any site))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question