Пример #1
0
 /**
  * Sets the 'confirmed' field of the user with the matching code to true.
  *
  * @param string $code
  * @return bool Success
  * @static 
  */
 public static function confirm($code)
 {
     return \Zizaco\Confide\Confide::confirm($code);
 }
Пример #2
0
 /**
  * Attempt to confirm account with code
  *
  * @param  string $code
  *
  * @return  Illuminate\Http\Response
  */
 public function confirm($code)
 {
     if (Confide::confirm($code)) {
         $notice_msg = Lang::get('confide::confide.alerts.confirmation');
         return Redirect::action('Vanderlin\\Slate\\Controllers\\UsersController@login')->with('notice', $notice_msg);
     } else {
         $error_msg = Lang::get('confide::confide.alerts.wrong_confirmation');
         return Redirect::action('Vanderlin\\Slate\\Controllers\\UsersController@login')->with('error', $error_msg);
     }
 }