streamlined policy edit process
This commit is contained in:
parent
8765d27236
commit
649d986a5d
10
app/Main.hs
10
app/Main.hs
|
@ -199,12 +199,10 @@ editPolicy p = if validatePWPolicy p
|
||||||
else reqFail
|
else reqFail
|
||||||
else reqFail
|
else reqFail
|
||||||
where
|
where
|
||||||
edit l v t p = reqIf
|
edit l v t p = do
|
||||||
(confirm $ l ++ " is " ++ show v ++ "\nchange?")
|
v <- reqDefault
|
||||||
(do
|
(prompt ("new " ++ l ++ " (default " ++ show v ++ "): ") reqInt) v
|
||||||
v <- required $ prompt ("new " ++ l ++ ": ") reqInt
|
return $ set t v p
|
||||||
return $ set t v p)
|
|
||||||
(return p)
|
|
||||||
special p = do
|
special p = do
|
||||||
reqIO $ putStrLn $ "special chars are currently " ++
|
reqIO $ putStrLn $ "special chars are currently " ++
|
||||||
(case p^.pwSpecial of
|
(case p^.pwSpecial of
|
||||||
|
|
Loading…
Reference in New Issue
Block a user