当前位置: 首页>>代码示例>>PHP>>正文


PHP Confide::forgotPassword方法代码示例

本文整理汇总了PHP中Confide::forgotPassword方法的典型用法代码示例。如果您正苦于以下问题:PHP Confide::forgotPassword方法的具体用法?PHP Confide::forgotPassword怎么用?PHP Confide::forgotPassword使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Confide的用法示例。


在下文中一共展示了Confide::forgotPassword方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: doForgotPassword

 public function doForgotPassword()
 {
     if (Confide::forgotPassword(Input::get('email'))) {
         $notice_msg = Lang::get('confide::confide.alerts.password_forgot');
         return Redirect::action('UsersController@login')->with('notice', $notice_msg);
     } else {
         $error_msg = Lang::get('confide::confide.alerts.wrong_password_forgot');
         return Redirect::action('UsersController@doForgotPassword')->withInput()->with('error', $error_msg);
     }
 }
开发者ID:Kouga-Huang,项目名称:laravel-blog,代码行数:10,代码来源:UsersController.php

示例2: resetpassword

 public function resetpassword($user)
 {
     if (!Confide::forgotPassword($user->email)) {
         if (!Api::make(array('error'))) {
             return Response::json(array('result' => 'error'));
         }
     } else {
         if (!Api::make(array('success'))) {
             return Response::json(array('result' => 'success'));
         }
     }
 }
开发者ID:Aranjedeath,项目名称:Laravel_Starter,代码行数:12,代码来源:UserService.php

示例3: do_forgot_password

 /**
  * Attempt to send change password link to the given email
  *
  */
 public function do_forgot_password()
 {
     if (\Confide::forgotPassword(Input::get('email'))) {
         $notice_msg = Lang::get('confide::confide.alerts.password_forgot');
         return Redirect::action('Vizioart\\Cookbook\\AuthController@login')->with('notice', $notice_msg);
     } else {
         $error_msg = Lang::get('confide::confide.alerts.wrong_password_forgot');
         return Redirect::action('Vizioart\\Cookbook\\AuthController@forgot_password')->withInput()->with('error', $error_msg);
     }
 }
开发者ID:ayurved,项目名称:Ayurveda,代码行数:14,代码来源:AuthController.php

示例4: postForgotPassword

 /**
  * Attempt to reset password with given email
  *
  */
 public function postForgotPassword()
 {
     if (Confide::forgotPassword(Input::get('email'))) {
         $notice_msg = Lang::get('confide::confide.alerts.password_forgot');
         return Redirect::to('user/forgot')->with('notice', $notice_msg);
     } else {
         $error_msg = Lang::get('confide::confide.alerts.wrong_password_forgot');
         return Redirect::to('user/login')->withInput()->with('error', $error_msg);
     }
 }
开发者ID:binaryk,项目名称:lareab,代码行数:14,代码来源:UserController.php

示例5: doForgotPassword

 /**
  * Attempt to send change password link to the given email
  *
  * @return  Illuminate\Http\Response
  */
 public function doForgotPassword()
 {
     if (\Confide::forgotPassword(\Input::get('email'))) {
         $notice_msg = \Lang::get('confide::confide.alerts.password_forgot');
         return \Redirect::route('getLogin')->with('notice', $notice_msg);
     } else {
         $error_msg = \Lang::get('confide::confide.alerts.wrong_password_forgot');
         return \Redirect::back()->withInput()->with('error', $error_msg);
     }
 }
开发者ID:minhliem86,项目名称:liemphan-cms,代码行数:15,代码来源:UsersController.php

示例6: doForgotPassword

 /**
  * Attempt to send change password link to the given email
  *
  * @return  Illuminate\Http\Response
  */
 public function doForgotPassword()
 {
     if (Confide::forgotPassword(Input::get('email'))) {
         $notice_msg = Lang::get('confide::confide.alerts.password_forgot');
         //$notice_msg='La información sobre el reinicio de su contraseña le ha sido enviada por e-mail.';
         return Redirect::action('UsersController@login')->with('notice', $notice_msg);
     } else {
         $error_msg = Lang::get('confide::confide.alerts.wrong_password_forgot');
         //$error_msg = 'Usuario no encontrado.';
         return Redirect::action('UsersController@forgotPassword')->withInput()->with('error', $error_msg);
     }
 }
开发者ID:prianticonsulting,项目名称:Habitaria,代码行数:17,代码来源:UsersController.php

示例7: postForgot

 public function postForgot()
 {
     return Confide::forgotPassword(Input::get('email')) ? Redirect::to('user/login')->with('success', Lang::get('confide::confide.alerts.password_forgot')) : Redirect::to('user/forgot')->withInput()->with('error', Lang::get('confide::confide.alerts.wrong_password_forgot'));
 }
开发者ID:Aranjedeath,项目名称:Laravel_Starter,代码行数:4,代码来源:SiteUserService.php

示例8: doForgotPassword

 /**
  * Attempt to send change password link to the given email
  *
  * @return  Illuminate\Http\Response
  */
 public function doForgotPassword()
 {
     if (Confide::forgotPassword(Input::get('email'))) {
         return Redirect::to('users/login')->with('notice', Lang::get('confide::confide.alerts.password_forgot'));
     } else {
         return Redirect::to('users/forgot_password')->withInput()->with('error', Lang::get('confide::confide.alerts.wrong_password_forgot'));
     }
 }
开发者ID:mdela,项目名称:movie-series,代码行数:13,代码来源:UsersController.php

示例9: postForgot

 /**
  * Attempt to send change password link to the given email
  *
  * @return  Illuminate\Http\Response
  */
 public function postForgot()
 {
     if (Confide::forgotPassword(Input::get('email'))) {
         $notice_msg = Lang::get('confide::confide.alerts.password_forgot');
         // return Redirect::action('UsersController@getLogin')
         //     ->with('notice', $notice_msg);
         return $this->response->array($notice_msg);
     } else {
         $error_msg = Lang::get('confide::confide.alerts.wrong_password_forgot');
         // return Redirect::action('UsersController@postForgot')
         //     ->withInput()
         //     ->with('error', $error_msg);
         return $this->response->errorBadRequest($error_msg);
     }
 }
开发者ID:rahmanda,项目名称:matome,代码行数:20,代码来源:UsersController.php


注:本文中的Confide::forgotPassword方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。