Google type user unlock process

I need your help or some recommendation, I have a requirement that if I try to log in with Google I must block the account until the sign up process is done normally and then compare the emails and if the Google type email exists then I have to do the account unlocking process, to do this unlocking I am using the API and updating only theblockd field, and later I create the user and after that I have to return to the Login page, but here is the problem: The creation process makes it perfect and the unlocking also does it but when I redirect to the login page it gives me a rollback of the changes applied to the Google type user, to do this unlocking I use the PATCH method as indicated in the usage of the API