enum

KemalIdentity::Passwords::PolicyViolation

Inherits Enum < Comparable < Value < Object

Why a password was refused.

Unlike FailureReason, these are safe to show a user: they arise when someone is choosing a password, not when someone is proving they know one, so there is no account to enumerate and a specific message is what makes the requirement followable.

Constants

TooShort = 0
TooLong = 1
Breached = 2

Instance methods

breached?

Returns true if this enum value equals Breached

Source
too_long?

Returns true if this enum value equals TooLong

Source
too_short?

Returns true if this enum value equals TooShort

Source