/**
* Forgot Password form has been submitted and no errors
* were found with the form (the username is in the database)
*/
if(isset($_SESSION['forgotpass'])){
/**
* New password was generated for user and sent to user's
* email address.
*/
if($_SESSION['forgotpass']){
echo "New Password Generated";
echo "Your new password has been generated "
."and sent to the email associated with your account. "
." ";
}
/**
* Email could not be sent, therefore password was not
* edited in the database.
*/
else{
echo "New Password Failure";
echo "There was an error sending you the "
."email with the new password, so your password has not been changed. "
." ";
}
unset($_SESSION['forgotpass']);
}
else{
/**
* Forgot password form is displayed, if error found
* it is displayed.
*/
?>
Forgotten Password
A new password will be generated for you and sent to the email address
associated with your account, all you have to do is enter your
username.
echo $form->error("user"); ?>
}
?>
|
|