简体   繁体   中英

lock user after many logging attempts in nodejs

I am using jwt tokens in nodejs to support authentication. Now I want to lock the user from the page when they give three wrong passwords. Does anybody know anything about this or resources that help with it?

Thank you in advance.

You could try blacklisting the user after the 3rd attempt and the only way a user can log in again is when their token has been reset. Here is a good resource for blacklisting: https://auth0.com/blog/blacklist-json-web-token-api-keys/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM