且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用Ruby on Rails中的Devise验证密码强度?

更新时间:2021-08-26 17:45:17

你可以使用 Devise Security扩展,您可以在其中定义密码正则表达式验证(除其他外),并强制您需要的密码强度。

You can use the Devise Security extension, where you can define a password regexp validation (among other things) and enforce the password strength you want.