We recently encountered a situation where we were expected to simulate a forgot password retrieval functionality. Application used to send an email to registered user id and user was expected to click on link in the email to reset the password.
To avoid the hassle of retrieving email we went...