File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4848
4949 ignoreBtn . onclick = ( ) => {
5050 errorModal . close ( )
51- // Redirect to the final destination without credentials, mimicking the old faulty behavior but with user consent.
52- window . location . href = decodeURIComponent ( redirectUrl )
51+ const targetUrl = new URL ( decodeURIComponent ( redirectUrl ) )
52+ targetUrl . searchParams . set ( 'login_status' , 'failed' )
53+ targetUrl . searchParams . set ( 'reason' , error . message )
54+ window . location . href = targetUrl . href
5355 }
5456 }
5557 </ script >
6365 < h3 class ="font-bold text-lg "> Credential Transfer Error</ h3 >
6466 < p class ="py-4 " id ="error_modal_message "> </ p >
6567 < div class ="modal-action ">
68+ < button class ="btn btn-primary " id ="retry_btn "> Retry</ button >
6669 < button class ="btn " id ="ignore_and_continue_btn "> Ignore and Continue</ button >
6770 </ div >
6871 </ div >
You can’t perform that action at this time.
0 commit comments