mensam-0
Safe HaskellSafe-Inferred
LanguageGHC2021

Mensam.Server.User

Synopsis

Documentation

data AuthenticationError Source #

Instances

Instances details
Generic AuthenticationError Source # 
Instance details

Defined in Mensam.Server.User

Associated Types

type Rep AuthenticationError :: Type -> Type #

Read AuthenticationError Source # 
Instance details

Defined in Mensam.Server.User

Show AuthenticationError Source # 
Instance details

Defined in Mensam.Server.User

Eq AuthenticationError Source # 
Instance details

Defined in Mensam.Server.User

Ord AuthenticationError Source # 
Instance details

Defined in Mensam.Server.User

type Rep AuthenticationError Source # 
Instance details

Defined in Mensam.Server.User

type Rep AuthenticationError = D1 ('MetaData "AuthenticationError" "Mensam.Server.User" "mensam-0-1nI1njg5LseIhGpsugoJ63" 'False) (C1 ('MetaCons "AuthenticationErrorUserDoesNotExist" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AuthenticationErrorWrongPassword" 'PrefixI 'False) (U1 :: Type -> Type))

data User Source #

Instances

Instances details
Generic User Source # 
Instance details

Defined in Mensam.Server.User

Associated Types

type Rep User :: Type -> Type #

Methods

from :: User -> Rep User x #

to :: Rep User x -> User #

Read User Source # 
Instance details

Defined in Mensam.Server.User

Show User Source # 
Instance details

Defined in Mensam.Server.User

Methods

showsPrec :: Int -> User -> ShowS #

show :: User -> String #

showList :: [User] -> ShowS #

Eq User Source # 
Instance details

Defined in Mensam.Server.User

Methods

(==) :: User -> User -> Bool #

(/=) :: User -> User -> Bool #

Ord User Source # 
Instance details

Defined in Mensam.Server.User

Methods

compare :: User -> User -> Ordering #

(<) :: User -> User -> Bool #

(<=) :: User -> User -> Bool #

(>) :: User -> User -> Bool #

(>=) :: User -> User -> Bool #

max :: User -> User -> User #

min :: User -> User -> User #

type Rep User Source # 
Instance details

Defined in Mensam.Server.User

userCreate Source #

Arguments

:: (MonadIO m, MonadLogger m, MonadSeldaPool m) 
=> Username 
-> Password 
-> EmailAddress 
-> Bool

email address visible

-> Bool

receive email notifications

-> SeldaTransactionT m IdentifierUser 

data SqlErrorMensamUsernameIsTaken Source #

Instances

Instances details
Exception SqlErrorMensamUsernameIsTaken Source # 
Instance details

Defined in Mensam.Server.User

Generic SqlErrorMensamUsernameIsTaken Source # 
Instance details

Defined in Mensam.Server.User

Associated Types

type Rep SqlErrorMensamUsernameIsTaken :: Type -> Type #

Read SqlErrorMensamUsernameIsTaken Source # 
Instance details

Defined in Mensam.Server.User

Show SqlErrorMensamUsernameIsTaken Source # 
Instance details

Defined in Mensam.Server.User

Eq SqlErrorMensamUsernameIsTaken Source # 
Instance details

Defined in Mensam.Server.User

Ord SqlErrorMensamUsernameIsTaken Source # 
Instance details

Defined in Mensam.Server.User

type Rep SqlErrorMensamUsernameIsTaken Source # 
Instance details

Defined in Mensam.Server.User

type Rep SqlErrorMensamUsernameIsTaken = D1 ('MetaData "SqlErrorMensamUsernameIsTaken" "Mensam.Server.User" "mensam-0-1nI1njg5LseIhGpsugoJ63" 'False) (C1 ('MetaCons "MkSqlErrorMensamUsernameIsTaken" 'PrefixI 'False) (U1 :: Type -> Type))

data SessionValidity Source #

Instances

Instances details
Generic SessionValidity Source # 
Instance details

Defined in Mensam.Server.User

Associated Types

type Rep SessionValidity :: Type -> Type #

Read SessionValidity Source # 
Instance details

Defined in Mensam.Server.User

Show SessionValidity Source # 
Instance details

Defined in Mensam.Server.User

Eq SessionValidity Source # 
Instance details

Defined in Mensam.Server.User

Ord SessionValidity Source # 
Instance details

Defined in Mensam.Server.User

type Rep SessionValidity Source # 
Instance details

Defined in Mensam.Server.User

type Rep SessionValidity = D1 ('MetaData "SessionValidity" "Mensam.Server.User" "mensam-0-1nI1njg5LseIhGpsugoJ63" 'False) (C1 ('MetaCons "SessionValid" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SessionInvalid" 'PrefixI 'False) (U1 :: Type -> Type))

data ConfirmationError Source #

Instances

Instances details
Generic ConfirmationError Source # 
Instance details

Defined in Mensam.Server.User

Associated Types

type Rep ConfirmationError :: Type -> Type #

Read ConfirmationError Source # 
Instance details

Defined in Mensam.Server.User

Show ConfirmationError Source # 
Instance details

Defined in Mensam.Server.User

Eq ConfirmationError Source # 
Instance details

Defined in Mensam.Server.User

Ord ConfirmationError Source # 
Instance details

Defined in Mensam.Server.User

type Rep ConfirmationError Source # 
Instance details

Defined in Mensam.Server.User

type Rep ConfirmationError = D1 ('MetaData "ConfirmationError" "Mensam.Server.User" "mensam-0-1nI1njg5LseIhGpsugoJ63" 'False) (C1 ('MetaCons "MkConfirmationErrorExpired" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MkConfirmationErrorEffectInvalid" 'PrefixI 'False) (U1 :: Type -> Type))

newtype ConfirmationEffect Source #

Instances

Instances details
FromJSON ConfirmationEffect Source # 
Instance details

Defined in Mensam.Server.User

ToJSON ConfirmationEffect Source # 
Instance details

Defined in Mensam.Server.User

Generic ConfirmationEffect Source # 
Instance details

Defined in Mensam.Server.User

Associated Types

type Rep ConfirmationEffect :: Type -> Type #

Read ConfirmationEffect Source # 
Instance details

Defined in Mensam.Server.User

Show ConfirmationEffect Source # 
Instance details

Defined in Mensam.Server.User

Eq ConfirmationEffect Source # 
Instance details

Defined in Mensam.Server.User

Ord ConfirmationEffect Source # 
Instance details

Defined in Mensam.Server.User

type Rep ConfirmationEffect Source # 
Instance details

Defined in Mensam.Server.User

type Rep ConfirmationEffect = D1 ('MetaData "ConfirmationEffect" "Mensam.Server.User" "mensam-0-1nI1njg5LseIhGpsugoJ63" 'True) (C1 ('MetaCons "MkConfirmationEffectEmailValidation" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EmailAddress)))

userNotificationsPreferencesEmailSet Source #

Arguments

:: (MonadLogger m, MonadSeldaPool m) 
=> IdentifierUser 
-> Bool

receive email notifications

-> SeldaTransactionT m () 

Make sure the email address is verified and only then set new email preferences.

data EmailPreferences Source #

Instances

Instances details
FromJSON EmailPreferences Source # 
Instance details

Defined in Mensam.Server.User

ToJSON EmailPreferences Source # 
Instance details

Defined in Mensam.Server.User

Generic EmailPreferences Source # 
Instance details

Defined in Mensam.Server.User

Associated Types

type Rep EmailPreferences :: Type -> Type #

Read EmailPreferences Source # 
Instance details

Defined in Mensam.Server.User

Show EmailPreferences Source # 
Instance details

Defined in Mensam.Server.User

Eq EmailPreferences Source # 
Instance details

Defined in Mensam.Server.User

Ord EmailPreferences Source # 
Instance details

Defined in Mensam.Server.User

type Rep EmailPreferences Source # 
Instance details

Defined in Mensam.Server.User

type Rep EmailPreferences = D1 ('MetaData "EmailPreferences" "Mensam.Server.User" "mensam-0-1nI1njg5LseIhGpsugoJ63" 'False) (C1 ('MetaCons "MkEmailPreferencesSend" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EmailAddress)) :+: C1 ('MetaCons "MkEmailPreferencesDontSend" 'PrefixI 'False) (U1 :: Type -> Type))

data SqlErrorMensamEmailNotVerified Source #

Instances

Instances details
Exception SqlErrorMensamEmailNotVerified Source # 
Instance details

Defined in Mensam.Server.User

Generic SqlErrorMensamEmailNotVerified Source # 
Instance details

Defined in Mensam.Server.User

Associated Types

type Rep SqlErrorMensamEmailNotVerified :: Type -> Type #

Read SqlErrorMensamEmailNotVerified Source # 
Instance details

Defined in Mensam.Server.User

Show SqlErrorMensamEmailNotVerified Source # 
Instance details

Defined in Mensam.Server.User

Eq SqlErrorMensamEmailNotVerified Source # 
Instance details

Defined in Mensam.Server.User

Ord SqlErrorMensamEmailNotVerified Source # 
Instance details

Defined in Mensam.Server.User

type Rep SqlErrorMensamEmailNotVerified Source # 
Instance details

Defined in Mensam.Server.User

type Rep SqlErrorMensamEmailNotVerified = D1 ('MetaData "SqlErrorMensamEmailNotVerified" "Mensam.Server.User" "mensam-0-1nI1njg5LseIhGpsugoJ63" 'False) (C1 ('MetaCons "MkSqlErrorMensamEmailNotVerified" 'PrefixI 'False) (U1 :: Type -> Type))