Password policy support after upgrade

Hey Guys,
I have upgraded erpnext from v6 to v11.
I think password policy in newer version is changed, can anybody suggest how to handle the case if I already have many users and I don’t want to re-generate the password after upgrade?

You can disable the new password policy on System Settings

I tried this but still getting this error in logs.

raise ValueError(“hash could not be identified”)
ValueError: hash could not be identified