Example #1
0
 /**
  * Check if an email exists and if it has been confirmed
  * 
  * @param string $email
  * @return bool, bool
  */
 public static function checkEmail($email)
 {
     $email_exists = User::where('email', '=', $email)->count();
     $email_confirmed = User::where('email', '=', $email)->where('id_code', '=', 1)->count();
     //return array( $email_exists, $email_confirmed );
     return $email_exists . $email_confirmed;
 }
Example #2
0
 public function check()
 {
     $email = Input::get('email');
     return User::checkEmail($email);
 }