fix(auth): prettier active directory errors in help messages
This commit is contained in:
parent
ea95d74cb5
commit
b631ed7d06
@ -219,8 +219,8 @@ campusLogin pool mode = AuthPlugin{..}
|
||||
, isUnusualADError adError -> do
|
||||
$logInfoS apName [st|#{campusIdent}: #{toPathPiece adError}|]
|
||||
observeLoginOutcome apName LoginADInvalidCredentials
|
||||
setSessionJson SessionError . InternalError $ toPathPiece adError
|
||||
MsgRenderer mr <- liftHandler getMsgRenderer
|
||||
setSessionJson SessionError . PermissionDenied . mr $ ADInvalidCredentials adError
|
||||
loginErrorMessage (tp LoginR) . mr $ ADInvalidCredentials adError
|
||||
Right (Left bindErr) -> do
|
||||
case bindErr of
|
||||
|
||||
Loading…
Reference in New Issue
Block a user