happstack-authenticate-0.10.15: Happstack Authentication Library

Safe HaskellNone

Happstack.Auth.Core.Profile

Synopsis

Documentation

newtype UserId Source

Constructors

UserId 

Fields

unUserId :: Integer
 

Instances

Eq UserId 
Data UserId 
Ord UserId 
Read UserId 
Show UserId 
Typeable UserId 
SafeCopy UserId 
PathInfo UserId 

data Profile Source

Constructors

Profile 

Fields

userId :: UserId
 
auths :: Set AuthId
 
nickName :: Text
 

Instances

Eq Profile 
Data Profile 
Ord Profile 
Read Profile 
Show Profile 
Typeable Profile 
Indexable Profile 
SafeCopy Profile 

data ProfileState Source

Constructors

ProfileState 

Fields

profiles :: Profiles
 
authUserMap :: Map AuthId UserId

map of what UserId an AuthId is currently defaulting to

nextUserId :: UserId
 

getProfileState :: Query ProfileState ProfileStateSource

Retrieve the entire ProfileState Warning, this is an admin level function?

getUserId :: (Alternative m, Happstack m) => AcidState AuthState -> AcidState ProfileState -> m (Maybe UserId)Source