Exemplo n.º 1
0
 public function send_reset_password_email($email, $code)
 {
     $subject = 'Reset Password';
     $html = 'You have requested to reset your password.<br />Your reset code is: ' . $code . '<br /><br /><a href="' . change_password_route($email, $code) . '">Click here</a> to automatically reset your password.';
     $text = 'You have requested to reset your password.\\r\\nYour reset code is:' . $code;
     // Send the email
     $this->send_email($email, $subject, $html, $text);
 }
Exemplo n.º 2
0
<?php

$template_model->set_title('Change password');
?>

<h1>Change password</h1>

<form action="<?php 
echo change_password_route();
?>
" method="post">
    <div class="input">
        <label for="email">Email:</label>
        <input type="text" name="email" value="<?php 
echo set_value('email');
?>
"/>
        <?php 
echo form_error('email');
?>
    </div>
    <div class="input">
        <label for="password">New password:</label>
        <input type="password" name="password" value=""/>
        <?php 
echo form_error('password');
?>
    </div>
    <div class="input">
        <label for="paswordconfirm">Confirm new password:</label>
        <input type="password" name="passwordconfirm" value=""/>