Starts in:
1 DAY
10 HRS
21 MIN
12 SEC
Starts in:
1 D
10 H
21 M
12 S
Open Closed

Invalid Email Confirmation Token Always Occuring #5024


User avatar
0
balessi75 created

ABP Commercial 7.0.1 / Blazor Server / EF / Non tiered / Separate Host DB, Separate Tenant DBs / Lepton Theme

Hi, we are receiving the error "Volo.Abp.Identity:InvalidToken": "Invalid token.", whenever an email confirmation link is clicked.

The error doesn't occur in local development, it only occurs when the app is deployed (Azure App Service).

I've included logging from Azure below. The log indicates Volo.Abp.Account.Public.Web.Pages.Account.EmailConfirmationModel.OnGetAsync - ModelState is "Valid"

However, Model.InvalidToken appears to be true in EmailConfirmation.cshtml.cs

Also, in the database, the user gets flagged as having their email confirmed when clicking the confirmation link, even though they received the invalid token error.

Any ideas on what could be happening here? Any help is greatly appreciated...


30 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    We also need to override EmailConfirmationModel

    I will share code soon.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Volo.Abp.Account.Pro.Public.Web/Pages/Account/EmailConfirmation.cshtml.cs

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    I will also update the logic in next version.

  • User Avatar
    0
    balessi75 created

    Hi @maliming

    Thank you!

    This solution is working for us until the next version.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    👍👍

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06