summaryrefslogtreecommitdiff
path: root/Property/User.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Property/User.hs')
-rw-r--r--Property/User.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Property/User.hs b/Property/User.hs
index dcbf56c9..661a6f8a 100644
--- a/Property/User.hs
+++ b/Property/User.hs
@@ -22,8 +22,8 @@ nuked user _ = check (isJust <$> homedir user) $ cmdProperty "userdel"
]
`describe` ("nuked user " ++ user)
-setPassword :: UserName -> Property
-setPassword user = Property (user ++ " password set") $
+hasPassword :: UserName -> Property
+hasPassword user = Property (user ++ " has password") $
withPrivData (Password user) $ \password -> makeChange $
withHandle StdinHandle createProcessSuccess
(proc "chpasswd" []) $ \h -> do