Search code examples
botframeworkchatbotmicrosoft-teamsadaptive-cardschange-password

Do we have a password reset adaptive card in MS Teams?


I am creating a password reset flow and wondering if we an adaptive card which includes 'new password' and 'confirm password' n a single card. Something like below

Password reset card

I know I could use 2 adaptive card with Input.text and style = password to achieve this. Wondering if we have anythign else.


Solution

  • You can use multiple input test box in a single adaptive card. to add New password and conform password you can use two input boxes in the single adaptive card.

    Example:

    {
        "type": "AdaptiveCard",
        "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
        "version": "1.3",
        "body": [
            {
                "type": "TextBlock",
                "text": "Please enter your new password below:",
                "wrap": true,
                "weight": "Bolder",
                "size": "Medium"
            },
            {
                "type": "TextBlock",
                "text": "New Password*",
                "wrap": true
            },
            {
                "type": "Input.Text",
                "placeholder": "***************"
            },
            {
                "type": "TextBlock",
                "text": "Repeat New Password*",
                "wrap": true
            },
            {
                "type": "Input.Text",
                "placeholder": "***************"
            }
        ]
    }