Skip to content

Commit

Permalink
Add on begin dialog function in login dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinbuss committed Sep 16, 2024
1 parent ce09144 commit be09f26
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions code/backend/dialogs/login_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
WaterfallDialog,
WaterfallStepContext,
)
from botbuilder.dialogs.dialog_context import DialogContext
from botbuilder.dialogs.prompts import ConfirmPrompt, OAuthPrompt, OAuthPromptSettings
from dialogs.logout_dialog import LogoutDialog
from utils import get_logger
Expand Down Expand Up @@ -50,6 +51,11 @@ def __init__(self, connection_name: str) -> None:
)
)

async def on_begin_dialog(
self, inner_dc: DialogContext, options: object
) -> DialogTurnResult:
return await super().on_begin_dialog(inner_dc=inner_dc, options=options)

async def prompt_step(self, step_context: WaterfallStepContext) -> DialogTurnResult:
"""Handles the prompt step of the login dialog.
Expand Down

0 comments on commit be09f26

Please sign in to comment.