IHP Api Reference
Safe HaskellNone

IHP.AuthSupport.Lockable

Documentation

lock :: (?modelContext :: ModelContext, CanUpdate user, UpdateField "lockedAt" user user (Maybe UTCTime) (Maybe UTCTime)) => user -> IO user Source #

isLocked :: HasField "lockedAt" user (Maybe UTCTime) => user -> IO Bool Source #

isLocked' :: HasField "lockedAt" user (Maybe UTCTime) => UTCTime -> user -> Bool Source #