當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Confide::confirm方法代碼示例

本文整理匯總了PHP中Confide::confirm方法的典型用法代碼示例。如果您正苦於以下問題:PHP Confide::confirm方法的具體用法?PHP Confide::confirm怎麽用?PHP Confide::confirm使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Confide的用法示例。


在下文中一共展示了Confide::confirm方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: confirm

 /**
  * 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('UsersController@login')->with('notice', $notice_msg);
     } else {
         $error_msg = Lang::get('confide::confide.alerts.wrong_confirmation');
         return Redirect::action('UsersController@login')->with('error', $error_msg);
     }
 }
開發者ID:matalina,項目名稱:kids-pledge,代碼行數:17,代碼來源:UsersController.php

示例2: wizard

 public function wizard($code)
 {
     if (Confide::confirm($code)) {
         $user = User::where('confirmation_code', '=', $code)->pluck('email');
         $user_auth = User::where('confirmation_code', '=', $code)->first();
         Auth::login($user_auth);
         if (Auth::check()) {
             $urbanism_types = UrbanismType::orderBy('id', 'ASC')->lists('type', 'id');
             $countries = Country::orderBy('id', 'ASC')->lists('name', 'id');
             $states = State::orderBy('id', 'ASC')->lists('name', 'id');
             $country_default = 'México';
             $selected_country = Country::where('name', '=', $country_default)->first();
             return View::make('dashboard.colonies.config.initial_config', ['urbanism_types' => $urbanism_types, 'user' => $user, 'countries' => $countries, 'states' => $states, 'code' => $code, 'selected_country' => [$selected_country->id], 'select' => ['' => 'Seleccione tipo de desarrollo'], 'select_1' => ['' => 'Seleccione País'], 'select_2' => ['' => 'Seleccione Estado'], 'select_3' => ['' => 'Seleccione Ciudad']]);
         }
     } else {
         $error_msg = Lang::get('confide::confide.alerts.wrong_confirmation');
         return Redirect::action('UsersController@login')->with('error', $error_msg);
     }
 }
開發者ID:prianticonsulting,項目名稱:Habitaria,代碼行數:19,代碼來源:ColonyController.php

示例3: confirm

 /**
  * Attempt to confirm account with code
  *
  * @param  string  $code
  */
 public function confirm($code)
 {
     if (Confide::confirm($code)) {
         $notice_msg = trans('texts.confide.confirmation');
         $user = User::where('confirmation_code', '=', $code)->get()->first();
         $user->confirmation_code = '';
         $user->save();
         if ($user->public_id) {
             Auth::login($user);
             return Redirect::to('user/reset');
         } else {
             return Redirect::action('UserController@login')->with('message', $notice_msg);
         }
     } else {
         $error_msg = trans('texts.confide.wrong_confirmation');
         return Redirect::action('UserController@login')->with('error', $error_msg);
     }
 }
開發者ID:aleguisf,項目名稱:fvdev1,代碼行數:23,代碼來源:UserController.php

示例4: getConfirm

 /**
  * Attempt to confirm account with code
  *
  * @param  string $code
  * @return \Illuminate\Http\RedirectResponse
  */
 public function getConfirm($code)
 {
     if (Confide::confirm($code)) {
         return Redirect::to('user/login')->with('notice', Lang::get('confide::confide.alerts.confirmation'));
     } else {
         return Redirect::to('user/login')->with('error', Lang::get('confide::confide.alerts.wrong_confirmation'));
     }
 }
開發者ID:binaryk,項目名稱:lareab,代碼行數:14,代碼來源:UserController.php

示例5: confirm

 /**
  * Attempt to confirm account with code
  *
  * @param  string  $code
  */
 public function confirm($code)
 {
     if (Confide::confirm($code)) {
         $notice_msg = trans('texts.confide.confirmation');
         $user = User::where('confirmation_code', '=', $code)->get()->first();
         $user->confirmation_code = '';
         $user->save();
         if ($user->public_id) {
             Auth::login($user);
             return Redirect::to('user/reset');
         } else {
             if (Session::has(REQUESTED_PRO_PLAN)) {
                 Session::forget(REQUESTED_PRO_PLAN);
                 $invitation = $this->accountRepo->enableProPlan();
                 return Redirect::to($invitation->getLink());
             } else {
                 return Redirect::action('UserController@login')->with('message', $notice_msg);
             }
         }
     } else {
         $error_msg = trans('texts.confide.wrong_confirmation');
         return Redirect::action('UserController@login')->with('error', $error_msg);
     }
 }
開發者ID:stewartadam,項目名稱:invoice-ninja,代碼行數:29,代碼來源:UserController.php

示例6: getConfirm

 public function getConfirm($code)
 {
     return Confide::confirm($code) ? Redirect::to('user/login')->with('success', Lang::get('confide::confide.alerts.confirmation')) : Redirect::to('user/login')->with('error', Lang::get('confide::confide.alerts.wrong_confirmation'));
 }
開發者ID:Aranjedeath,項目名稱:Laravel_Starter,代碼行數:4,代碼來源:SiteUserService.php


注:本文中的Confide::confirm方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。