will be helpful for those in need The CTRL-A x - mean "lock the screen". So, it asking you for the locking password (of course twice). You can enter any string. Of course, when they did't matches it says mischmah.
With these it helps Try wrapping your your code in a try catch block. If you catch an exception, then clear the password. If you are experiencing a non-intended exception, you should probably re-work your code.
Opening a Non-Password-Protected Access 2000 Database that Asks for a Username and Password
hop of those help? From a general security practice, I would require entering the old password as well. This adds a layer of protection that confirms the user really is the owner of the account, and not someone who grabbed their phone while the app was open (e.g. their kid, their friend, etc.). EDIT: I forgot to add this, but this method should have a back-up way of changing the password that provides a similar method of authentication, such as an email they supplied when creating their account. This way, if the user forgets their old password and wants to change it, they can use their email to validate it is them. Send a token (randomly generated numbers/letters) to the address in their account, then require that token to change their password, provided they enter it within a time limit*. After they enter the token, then only allow them to change their password, as opposed to seeing their old password or requiring they enter their old password.