This repository was archived by the owner on Sep 3, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +37
-16
lines changed
src/dispatch/plugins/dispatch_slack/case Expand file tree Collapse file tree 1 file changed +37
-16
lines changed Original file line number Diff line number Diff line change @@ -2511,28 +2511,49 @@ def ack_mfa_required_submission_event(
25112511) -> None :
25122512 """Handles the add engagement submission event acknowledgement."""
25132513
2514+ blocks = []
2515+
25142516 if mfa_enabled :
2515- mfa_text = (
2516- "🔐 To complete this action, you need to verify your identity through Multi-Factor Authentication (MFA).\n \n "
2517- f"Please <{ challenge_url } |*click here*> to open the MFA verification page."
2517+ blocks .extend (
2518+ [
2519+ Section (
2520+ text = "To complete this action, you need to verify your identity through Multi-Factor Authentication (MFA).\n \n "
2521+ "Please click the verify button to open the MFA verification page."
2522+ ),
2523+ Actions (
2524+ elements = [
2525+ Button (
2526+ text = "🔐 Verify" ,
2527+ action_id = "button-link" ,
2528+ style = "primary" ,
2529+ url = challenge_url ,
2530+ )
2531+ ]
2532+ ),
2533+ ]
25182534 )
25192535 else :
2520- mfa_text = "✅ No additional verification required. You can proceed with the confirmation."
2536+ blocks .append (
2537+ Section (
2538+ text = "✅ No additional verification required. You can proceed with the confirmation."
2539+ )
2540+ )
25212541
2522- blocks = [
2523- Section (text = mfa_text ),
2524- Divider (),
2525- Context (
2526- elements = [
2527- MarkdownText (
2528- text = "💡 This step protects against unauthorized confirmation if your account is compromised."
2529- )
2530- ]
2531- ),
2532- ]
2542+ blocks .extend (
2543+ [
2544+ Divider (),
2545+ Context (
2546+ elements = [
2547+ MarkdownText (
2548+ text = "💡 This step protects against unauthorized confirmation if your account is compromised."
2549+ )
2550+ ]
2551+ ),
2552+ ]
2553+ )
25332554
25342555 modal = Modal (
2535- title = "Confirm Your Identity" ,
2556+ title = "Verify Your Identity" ,
25362557 close = "Cancel" ,
25372558 blocks = blocks ,
25382559 ).build ()
You can’t perform that action at this time.
0 commit comments