File tree Expand file tree Collapse file tree
src/backend/src/routers/auth Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -68,13 +68,13 @@ const OIDC_ERROR_REDIRECT_MAP = {
6868function buildOIDCErrorRedirectUrl ( sourceFlow , errorCondition , message , stateDecoded ) {
6969 const targetFlow = OIDC_ERROR_REDIRECT_MAP [ sourceFlow ] ?. [ errorCondition ] ?? sourceFlow ;
7070 const origin = ( config . origin || '' ) . replace ( / \/ $ / , '' ) || '/' ;
71- const params = new URLSearchParams ( { action : targetFlow , auth_error : '1' , message : message === 'This account is suspended.' ? message : 'Unauthorized ' } ) ;
71+ const params = new URLSearchParams ( { action : targetFlow , auth_error : '1' , message : message === 'This account is suspended.' ? 'account_suspended' : 'unauthorized ' } ) ;
7272 if ( stateDecoded ?. embedded_in_popup && stateDecoded ?. msg_id != null ) {
7373 const popupParams = new URLSearchParams ( {
7474 embedded_in_popup : 'true' ,
7575 msg_id : String ( stateDecoded . msg_id ) ,
7676 auth_error : '1' ,
77- message : message === 'This account is suspended.' ? message : 'Unauthorized ' ,
77+ message : message === 'This account is suspended.' ? 'account_suspended' : 'unauthorized ' ,
7878 action : targetFlow ,
7979 } ) ;
8080 if ( stateDecoded ?. opener_origin ) {
You can’t perform that action at this time.
0 commit comments