defined password policy

This commit is contained in:
Jonathan Lamothe 2018-12-09 15:34:29 -05:00
parent a365632363
commit caf669fef7

View File

@ -22,4 +22,24 @@ License along with this program. If not, see
-}
module Password where
module Password (
-- * Data Types
PWPolicy (..)
) where
-- | defines a password policy
data PWPolicy = PWPolicy
{ _pwLength :: Int
-- ^ password length
, _pwUpper :: Int
-- ^ the minimum number of upper case characters
, _pwLower :: Int
-- ^ the minimum number of lower case characters
, _pwDigits :: Int
-- ^ the minimum number of digits
, _pwSpecial :: Maybe Int
-- ^ the minimum number of non-alphanumeric characters (not allowed
-- if @"Nothing"@)
} deriving (Eq, Show)
--jl