After resetting OTP secret for a user the user cant sign in

HI,
I have two factor authentication enabled.
I reseted otp secret for a user.
now after entering the password he gets otp encryption key is invalid, please check site_config.json.
tnx

Any help would be much appreciated.