bitzesty / devise_zxcvbn

Devise plugin to reject weak passwords using zxcvbn
MIT License
194 stars 38 forks source link

Minor refactor, trying to enhance min_password_score readability #6

Closed msanroman closed 10 years ago

msanroman commented 10 years ago

Checks if score is within range, in order to express better intent.

Also, avoids duplication by transforming the if/else clause in a simple check that looks if has to do the warn via Rails logger.