title: Restrict access to iphone till a random reset code is provided. reset code is communicated between application and user via email
body: <p>I am making an customized alarm clock  iPhone app. In order to turn the alarm clock off, the user has to type in a random code that is sent to his email before 2 hours before the alarm. I am looking for a mechanism by which I can restrict complete access till the user puts in the random reset code. Also, at this time, the user should not be allowed to reduce the volume, turn off the phone, or any other mechanisms.</p>