London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Identity reset password problems

Vote:
 

Hi everyone,

I'm running into an issue when trying to reset a user's password using ASP.NET Identity within an Optimizely (Episerver) application.

I'm generating a password reset token right before calling ResetPasswordAsync, but I consistently receive the following error:

 
Code: ConcurrencyFailure Description: Optimistic concurrency failure, object has been modified.

Here's a summary of what I’ve tried so far:

  • Generating a fresh token at the moment the password reset is triggered.

  • Retrying the reset with up to three attempts, each time with a newly generated token.

  • Implemented fallback mechanisms such as removing and re-adding the password via RemovePasswordAsync and AddPasswordAsync.

Despite these efforts, the concurrency error persists.

Has anyone encountered this issue before or found a reliable workaround when using Identity with Optimizely? Any guidance or suggestions would be greatly appreciated!

 

Very important note: This is happening only on the Production environment. On local/inte/prep is working properly.

Thanks in advance!

#337816
Apr 14, 2025 13:34
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.