Xiaomi phones comes with very high security.
But sometimes this feature is very irritating because if you forgot your pattern and tries sp many times then phone gonna to be stuck for about 120 minutes and after waiting for 120 min you got only one chance to try to unlock your device.
And if you failed to draw correct pattern then you have to wait for another 120 min. This is so much irritating I think.
But you can hard reset you phone thorough mi cloud.
By the way phone is very good.