refactor(lpr): lms link switched to https and includes pre-filled login
This commit is contained in:
parent
77f76fbe8d
commit
2221b30771
@ -66,16 +66,18 @@ dispatchNotificationQualificationRenewal nQualification jRecipient = do
|
|||||||
expiryDate <- formatTimeUser SelFormatDate qualificationUserValidUntil $ Just entRecipient
|
expiryDate <- formatTimeUser SelFormatDate qualificationUserValidUntil $ Just entRecipient
|
||||||
|
|
||||||
let printJobName = "RenewalPin"
|
let printJobName = "RenewalPin"
|
||||||
prepAddress upa = userDisplayName : (upa & html2textlines) -- TODO: use supervisor's address
|
prepAddress upa = userDisplayName : (upa & html2textlines) -- TODO: use supervisor's address
|
||||||
|
lmsIdent = lmsUserIdent & getLmsIdent
|
||||||
pdfMeta = mkMeta
|
pdfMeta = mkMeta
|
||||||
[ toMeta "date" letterDate
|
[ toMeta "date" letterDate
|
||||||
, toMeta "lang" (selectDeEn userLanguages) -- select either German or English only, see Utils.Lang
|
, toMeta "lang" (selectDeEn userLanguages) -- select either German or English only, see Utils.Lang
|
||||||
, toMeta "login" (lmsUserIdent & getLmsIdent)
|
, toMeta "login" lmsIdent
|
||||||
, toMeta "pin" lmsUserPin
|
, toMeta "pin" lmsUserPin
|
||||||
, toMeta "recipient" userDisplayName
|
, toMeta "recipient" userDisplayName
|
||||||
, mbMeta "address" (prepAddress <$> userPostAddress)
|
, mbMeta "address" (prepAddress <$> userPostAddress)
|
||||||
, toMeta "expiry" expiryDate
|
, toMeta "expiry" expiryDate
|
||||||
, mbMeta "validduration" (show <$> qualificationValidDuration)
|
, mbMeta "validduration" (show <$> qualificationValidDuration)
|
||||||
|
, toMeta "url" ("<https://drive.fraport.de/?login=" <> lmsIdent <> ">")
|
||||||
]
|
]
|
||||||
pdfRenewal pdfMeta >>= \case
|
pdfRenewal pdfMeta >>= \case
|
||||||
Left err -> do
|
Left err -> do
|
||||||
|
|||||||
@ -6,7 +6,6 @@ en-subject: Renewal of apron driving License
|
|||||||
author: Fraport AG - Fahrerausbildung (AVN-AR)
|
author: Fraport AG - Fahrerausbildung (AVN-AR)
|
||||||
phone: +49 69 690-30306
|
phone: +49 69 690-30306
|
||||||
email: fahrerausbildung@fraport.de
|
email: fahrerausbildung@fraport.de
|
||||||
url: <http://drive.fraport.de>
|
|
||||||
place: Frankfurt/Main
|
place: Frankfurt/Main
|
||||||
return-address:
|
return-address:
|
||||||
- 60547 Frankfurt
|
- 60547 Frankfurt
|
||||||
@ -22,6 +21,7 @@ encludes:
|
|||||||
hyperrefoptions: hidelinks
|
hyperrefoptions: hidelinks
|
||||||
|
|
||||||
### Metadaten, welche automatisch ersetzt werden:
|
### Metadaten, welche automatisch ersetzt werden:
|
||||||
|
url: <https://drive.fraport.de>
|
||||||
date: 11.11.1111
|
date: 11.11.1111
|
||||||
expiry: 00.00.0000
|
expiry: 00.00.0000
|
||||||
lang: de-de
|
lang: de-de
|
||||||
|
|||||||
Reference in New Issue
Block a user