Commit 16d449ab by Oleksandr Barabash

mars-auth fixed

parent 6f9fb07e
...@@ -20,7 +20,7 @@ en: ...@@ -20,7 +20,7 @@ en:
cmd_portal: "portal" cmd_portal: "portal"
cmd_mars_service: "mars-auth" cmd_mars_auth: "mars-auth"
portal_text: "Open secured portal" portal_text: "Open secured portal"
......
...@@ -385,9 +385,9 @@ class TeamsMessagingExtensionsActionPreviewBot(TeamsActivityHandler): ...@@ -385,9 +385,9 @@ class TeamsMessagingExtensionsActionPreviewBot(TeamsActivityHandler):
cmd_help = i18n.t("cmd_help") cmd_help = i18n.t("cmd_help")
cmd_portal = i18n.t("cmd_portal") cmd_portal = i18n.t("cmd_portal")
cmd_sharepoint_acc = i18n.t("cmd_sharepoint_acc") cmd_sharepoint_acc = i18n.t("cmd_sharepoint_acc")
cmd_mars_service = i18n.t("cmd_mars_service") cmd_mars_auth = i18n.t("cmd_mars_auth")
if message_lower == cmd_mars_service.lower(): if message_lower == cmd_mars_auth.lower():
header = i18n.t("text_service_acc_auth") header = i18n.t("text_service_acc_auth")
title = i18n.t("text_authorize") title = i18n.t("text_authorize")
url = f"https://{AppConfig.MARS_FQDN}/service-auth" url = f"https://{AppConfig.MARS_FQDN}/service-auth"
...@@ -401,7 +401,6 @@ class TeamsMessagingExtensionsActionPreviewBot(TeamsActivityHandler): ...@@ -401,7 +401,6 @@ class TeamsMessagingExtensionsActionPreviewBot(TeamsActivityHandler):
) )
return return
if message_lower == cmd_help.lower(): if message_lower == cmd_help.lower():
tenant_id = turn_context.activity.conversation.tenant_id tenant_id = turn_context.activity.conversation.tenant_id
conversation_id = turn_context.activity.conversation.id conversation_id = turn_context.activity.conversation.id
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment