How can i capture keystrokes and mouse movements and use them for authentication, currently my system uses only username and password for authentication.
You would need some JavaScript running in the browser to do that. That’s not something under the control of Django.
Oh i see. Do you have any idea on how i can do that?
Because i need to implement 2FA using the username and password which i have already implemented in Django login, now i want to add keystrokes.
I’m sorry, I have no idea. I’m also of the opinion that it’s a bad idea to even try that in a web app. For this to even have a chance of providing something close to reasonable, you’d need to collect this information at the operating system layer and not just from within the browser.
I see, let me think more on what you have proposed