I'm planning to use AWS Rekognition
service for forgot password in my iOS and android apps. Flow will be like, whenever user initiate forgot password, I will be checking whether actual user is initiating the forgot password for particular mobile number. For this I will be asking user to take one live pic of himself/herself and check this against reference image. But I'm facing one scenario in this,
E.g: If user A got the User B's mobile and initiate forgot password from B's device, if we have only OTP authentication, A can easily change B's password using forgot password, since A have access to B's messages.
So I want to add extra layer of security before initiating forgot password flow by ensuring using live picture of person who is initiating forgot password action.
In this case what if User A have User B's image in A's mobile and take photo of it from user B's mobile and initiate forgot password?
How to restrict this kind of scenario? and I just want to know whether this is suggested way to proceed or not.
Please advice.