Hi,
I am developing a module called forgot password where password is sent to the user entered email address. After user submits the forgotpassword page, password is sent to user email address by
java mailing API.
In between I have a transition page with description that "we are sending your password to your email address. Please check your mail to get your password". Then user is redirected to login page.
Now I want some waiting time between the transition and login page. Login page should come up after the specified time. What would be the best way to do that?
One solution which comes in my mind is put current
Thread in sleep state for some time.
Is this ok? Or should I go with JavaScript and call JavaScript inbuilt functions for the wait?
Warm Regards
Naseem Khan