chore(postal): fix #12 by changing default for userPrefersPostal to True
This commit is contained in:
parent
2a98148993
commit
f025b42bfe
@ -276,6 +276,7 @@ user-defaults:
|
|||||||
show-sex: false
|
show-sex: false
|
||||||
exam-office-get-synced: true
|
exam-office-get-synced: true
|
||||||
exam-office-get-labels: true
|
exam-office-get-labels: true
|
||||||
|
prefers-postal: true
|
||||||
|
|
||||||
# During central allocations lecturer-given ratings of applications (as
|
# During central allocations lecturer-given ratings of applications (as
|
||||||
# ExamGrades) are combined with a central priority.
|
# ExamGrades) are combined with a central priority.
|
||||||
|
|||||||
@ -291,7 +291,7 @@ decodeUser now UserDefaultConf{..} upsertMode ldapData = do
|
|||||||
, userMatrikelnummer = Nothing -- not known from LDAP, must be derived from REST interface to AVS TODO
|
, userMatrikelnummer = Nothing -- not known from LDAP, must be derived from REST interface to AVS TODO
|
||||||
, userPostAddress = Nothing -- not known from LDAP, must be derived from REST interface to AVS TODO
|
, userPostAddress = Nothing -- not known from LDAP, must be derived from REST interface to AVS TODO
|
||||||
, userPinPassword = Nothing -- must be derived via AVS
|
, userPinPassword = Nothing -- must be derived via AVS
|
||||||
, userPrefersPostal = False
|
, userPrefersPostal = userDefaultPrefersPostal
|
||||||
, ..
|
, ..
|
||||||
}
|
}
|
||||||
userUpdate = [
|
userUpdate = [
|
||||||
|
|||||||
@ -318,7 +318,7 @@ upsertAvsUserById api = do
|
|||||||
, aufFPersonalNumber = avsInternalPersonalNo <$> canonical avsPersonInternalPersonalNo
|
, aufFPersonalNumber = avsInternalPersonalNo <$> canonical avsPersonInternalPersonalNo
|
||||||
, aufFDepartment = Nothing
|
, aufFDepartment = Nothing
|
||||||
, aufPostAddress = userFirmAddr
|
, aufPostAddress = userFirmAddr
|
||||||
, aufPrefersPostal = isJust firmAddress
|
, aufPrefersPostal = True
|
||||||
, aufPinPassword = userPin
|
, aufPinPassword = userPin
|
||||||
, aufEmail = fakeNo -- Email is unknown in this version of the avs query, to be updated later (FUTURE TODO)
|
, aufEmail = fakeNo -- Email is unknown in this version of the avs query, to be updated later (FUTURE TODO)
|
||||||
, aufIdent = fakeIdent -- use AvsPersonId instead
|
, aufIdent = fakeIdent -- use AvsPersonId instead
|
||||||
|
|||||||
@ -281,6 +281,7 @@ data UserDefaultConf = UserDefaultConf
|
|||||||
, userDefaultShowSex :: Bool
|
, userDefaultShowSex :: Bool
|
||||||
, userDefaultExamOfficeGetSynced :: Bool
|
, userDefaultExamOfficeGetSynced :: Bool
|
||||||
, userDefaultExamOfficeGetLabels :: Bool
|
, userDefaultExamOfficeGetLabels :: Bool
|
||||||
|
, userDefaultPrefersPostal :: Bool
|
||||||
} deriving (Show)
|
} deriving (Show)
|
||||||
|
|
||||||
data PWHashConf = PWHashConf
|
data PWHashConf = PWHashConf
|
||||||
|
|||||||
@ -199,7 +199,7 @@ fillDb = do
|
|||||||
, userCompanyDepartment = Just "AVN-AR2"
|
, userCompanyDepartment = Just "AVN-AR2"
|
||||||
, userPinPassword = Nothing
|
, userPinPassword = Nothing
|
||||||
, userPostAddress = Nothing
|
, userPostAddress = Nothing
|
||||||
, userPrefersPostal = False
|
, userPrefersPostal = True
|
||||||
, userExamOfficeGetSynced = userDefaultExamOfficeGetSynced
|
, userExamOfficeGetSynced = userDefaultExamOfficeGetSynced
|
||||||
, userExamOfficeGetLabels = userDefaultExamOfficeGetLabels
|
, userExamOfficeGetLabels = userDefaultExamOfficeGetLabels
|
||||||
}
|
}
|
||||||
|
|||||||
@ -55,4 +55,4 @@ fakeUser adjUser = adjUser User{..}
|
|||||||
userCompanyDepartment = Nothing
|
userCompanyDepartment = Nothing
|
||||||
userPinPassword = Nothing
|
userPinPassword = Nothing
|
||||||
userPostAddress = Nothing
|
userPostAddress = Nothing
|
||||||
userPrefersPostal = False
|
userPrefersPostal = userDefaultPrefersPostal
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user