Exemplo n.º 1
0
 public function send_signup_email($email, $code)
 {
     $subject = 'Validate Email';
     $html = 'Thanks for signing up.<br />Your validation code is: ' . $code . '<br /><br /><a href="' . validate_route($email, $code) . '">Click here</a> to automatically validate your email.';
     $text = 'Thanks for signing up.\\r\\nYour validation code is:' . $code;
     // Send the email
     $this->send_email($email, $subject, $html, $text);
 }
Exemplo n.º 2
0
    <div class="input">
        <label>Email</label>
        <input type="text" name="email" value="<?php 
echo set_value('email');
?>
" />
        <?php 
echo form_error('email');
?>
    </div>
    <div class="input">
        <label>Password</label>
        <input type="password" name="password" value="" />
        <?php 
echo form_error('password');
?>
    </div>
    <div class="input-submit">
        <input type="submit" value="Login" />
    </div>
</form>

<a href="<?php 
echo reset_password_route();
?>
">Forgot your password?</a>
<br />
<a href="<?php 
echo validate_route();
?>
">Validate email?</a>