예제 #1
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);
     }
 }
예제 #2
0
 /**
  * Display the forget password view
  *
  * @return \Illuminate\View\View 
  * @static 
  */
 public static function makeResetPasswordForm($token)
 {
     return \Zizaco\Confide\Confide::makeResetPasswordForm($token);
 }
예제 #3
0
 /**
  * Check whether the controller's action exists.
  * 
  * Returns the url if it does. Otherwise false.
  *
  * @param $controllerAction
  * @return string 
  * @static 
  */
 public static function checkAction($action, $parameters = array(), $absolute = true)
 {
     return \Zizaco\Confide\Confide::checkAction($action, $parameters, $absolute);
 }