-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
beef with password complexity #1
Comments
Partially cause I'm regularly annoyed by very bad password policies. Some examples:
IMHO a more worthy way would be to include something like https://github.com/dropbox/zxcvbn to estimate the "worthiness" of the password. |
I don't like the idea of current implementation. Yes, there are situations where checking for specific rules is necessary, but that shouldn't mean everyone has to follow those rules (and adding it as a devise feature maybe triggers this). I can remember well enough that there was an RegEx commonly shared to "validate" email addresses, which didn't allow for "+" chars in the user part. Not fun. Additionally I don't like to hide away that you could just add a validator. Is it hard for users to add a Password-Attribute validator? If so, make it simpler. If not, keep it that way and help users adding one that fits. Would it be neat to have a set of password validators for common government enforced rules? Sure, but is this really a Devise Problem? I still don't feel like "reopening" the discussion on the PR. Maintainers seem to be happy. |
I fully agree, but external standards are external standards, it's not more worrisome to you that everybody with varying skillset cooks their own recipe? |
I'm more worried about a bad default that gives a false sense of security and in addition is just cumbersome for users, then I'm worried about bad passwords. Using one Uppercase, one Lowercase, one Number and maybe one Specialchars is a kinda naive approach. Just as stated here rails/rails#53984 (comment), but I think it can be applied to Devise too.
If there is evidence that too many developers get bitten by the current default, then we should think about forcing configuration from the implementing developer. But not with one default, but a list of known good/accepted variants. Also, cause I don't think it's good to burden this on devise, it should be done as simple as possible, i.e. by choosing/enabling a validator class. Linking back to the original PR, maybe someone finds it interesting to read: heartcombo/devise#5727 |
We do not agree at all regarding having this or not having this in devise but I really appreciate the time you took to answer everything. I believe most people are doing this anyway because of external requirements or internal policy (as right or wrong as it might be) and having this inside provides a unified path to do so, which in my opinion is better than el dorado. Thank you for your comment, we align on the whole approach, we just end up with different conclusions, but I immensely appreciate what you wrote! |
Hey,
I was just curious, why did you give a thumbs down to password complexity on devise?
The text was updated successfully, but these errors were encountered: