简体   繁体   English

在nodejs中多次记录尝试后锁定用户

[英]lock user after many logging attempts in nodejs

I am using jwt tokens in nodejs to support authentication. 我在nodejs中使用jwt令牌来支持身份验证。 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/ 这是列入黑名单的好资源: https : //auth0.com/blog/blacklist-json-web-token-api-keys/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 jQuery tablesorter在多次尝试后拒绝工作 - jQuery tablesorter refusing to working after many attempts 经过多次尝试,失败了。 编辑 ckeditor - after many attempts, failed. Edit ckeditor 尝试失败后尝试显示登录尝试和用户锁定消息 - Trying to display login attempts and user lockout message after failed attempts 让用户在三次尝试后继续进行 - Letting user carry on after three attempts 尝试过多后,jQuery即时搜索停顿了 - Jquery instant search stalls out after too many attempts Meteor,跟踪用户登录失败的尝试,并禁止他们在x次尝试后登录 - Meteor, Keep track of user's failed login attempts and forbid them to login after x attempts 检查PHP表单是否有效以便在3次尝试后锁定用户 - Checking if a PHP form is valid for the purpose of locking out a user after 3 attempts 用户尝试回答后,如何重置游戏板以进行下一个选择(jQuery) - After user attempts answer, how to reset gameboard for next selection (jquery) 超过不成功的登录尝试后如何禁用 Cognito 用户 - How to disable Cognito user after exceeding the unsuccessful login attempts 屏幕锁定后登录时,javascript计时器事件是否批量运行? - Is javascript timer events run in bulk when logging in after screen lock?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM