implemented newPWDatabase

This commit is contained in:
Jonathan Lamothe
2018-12-18 14:41:29 -05:00
parent e28faacc13
commit 970adc221c
3 changed files with 40 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ module Password (
-- *** PWPolicy
pwLength, pwUpper, pwLower, pwDigits, pwSpecial,
-- ** Default Instances
newPWData, newPWPolicy, newPWSalt,
newPWDatabase, newPWData, newPWPolicy, newPWSalt,
-- * Functions
validatePWPolicy
) where
@@ -83,6 +83,10 @@ type PWSalt = B.ByteString
makeLenses ''PWPolicy
makeLenses ''PWData
-- | default (empty) password database
newPWDatabase :: PWDatabase
newPWDatabase = M.empty
-- | builds a new @'PWData'@
newPWData
:: RandomGen g