Enum passablewords::PasswordError
[−]
[src]
pub enum PasswordError {
TooShort,
TooCommon,
TooSimple,
InternalError,
}The suite of possible errors returned from passablewords. These represent the three checks made
for length, uniqueness, and entropy. If something goes wrong during the request, an
InternalError error is returned.
Variants
TooShortThe password is less than 8 characters and is therefore too short.
TooCommonThe password is within the list of 1,000,000 most common passwords and should not be used.
TooSimpleThe entropy of the password is too low, which means it could be easily guessable/crackable. A more random password should be used instead.
InternalErrorSomething went wrong during the password checks and a normal error couldn't be returned.