Changelog:
authenticate
function now returnsMonadIO m => m PamRetCode
rather thanIO (Either Int ())
authSuccess :: PamRetCode -> Bool
added which checks if the givenPamRetCode
isPamSuccess
or notwhenSuccess :: MonadIO m => PamRetCode -> m PamRetCode -> m PamRetCode
added, which returns the second argument if the given response code isPamSuccess
, otherwise it returns the given response code (useful for continuing only if the PAM action succeeded).pamCodeToMessage
,pamCodeToCDefine
andpamCodeDetails
now take aPamRetCode
rather than anInt
checkAccount
function has now been implemented- Switched to PVP versioning
- Some documentation added