Open Closed

Email confirmation is not updating "EmailConfirmed" #2499


User avatar
0
nielsklijn created

After clicking the email confirmation link the "EmailConfirmed" column in the database is not set to true.

  • The web page does show and says the email has been confirmed "succesfully"

A work around that I have tried: I tried setting the email confirmed property hard coded to "true" and saving this directly to the identityuser store. However this still does not update the email confirmed propery, if I change any other data and save that to the store it does save.

See below (properties like active, surname, are updated):

public override async Task<IdentityResult> ConfirmEmailAsync(IdentityUser user, string token) {
    var result = await base.ConfirmEmailAsync(user, token);
    user.Surname = "weird";
    user.SetIsActive(false);
    user.SetEmailConfirmed(true);
    
    Console.WriteLine(user.EmailConfirmed + "confirmed");
    await UserRepository.UpdateAsync(user, autoSave:true);
    
    var cast = Store as IUserEmailStore<IdentityUser>;
    await cast.SetEmailConfirmedAsync(user, true,new CancellationToken());
    
    return result;
}
  • ABP Framework version: v5.1.2
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace: none
  • Steps to reproduce the issue:"

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

    hi

    Can you reproduce the issue in the unit test?

Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.2.0-preview. Updated on January 09, 2026, 07:22
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.