jeremyevans / rodauth

Ruby's Most Advanced Authentication Framework
http://rodauth.jeremyevans.net
MIT License
1.67k stars 95 forks source link

Add password maximum length and requirements examples #302

Closed janko closed 1 year ago

janko commented 1 year ago

I saw in the OWASP Authentication Cheat Sheet that setting a maximum password length is recommended to prevent long password Denial of Service attacks, so I thought it's useful to show an example in the guide.

I also recently implemented a custom password complexity validation, and since it required reading the source code, I thought it would be useful to have a concrete example in the docs that people can adapt.

jeremyevans commented 1 year ago

Thanks for the patch!