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


PHP Password::remind方法代码示例

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


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

示例1: postRemind

 /**
  * Handle a POST request to remind a user of their password.
  *
  * @return Response
  */
 public function postRemind()
 {
     $response = Password::remind(Input::only('email'), function ($message) {
         $message->subject('Password Reminder');
     });
     return Redirect::to('password/reminded');
 }
开发者ID:huang53798584,项目名称:Authentication-System,代码行数:12,代码来源:RemindersController.php

示例2: request

 /**
  * Envia un missatge amb un enllaç per recuperar el compte
  */
 public function request()
 {
     $credentials = array('email_estudiant' => Input::get('email'));
     return Password::remind($credentials, function ($message, $user) {
         $message->subject('Workshome - Recuperación de cuenta');
     });
 }
开发者ID:goodvibrations,项目名称:workshome,代码行数:10,代码来源:PasswordController.php

示例3: requestAction

 public function requestAction()
 {
     if (Input::server("REQUEST_METHOD") == "POST") {
         $rules = array("email" => "required");
         $validator = Validator::make(Input::all(), $rules);
         if ($validator->fails()) {
             //validation failed
             Session::flash('status_error', 'Sorry, you entered an incorrect email.');
             return Redirect::route("user/request");
         } else {
             //validation passed
             $email = Input::get("email");
             try {
                 $userEmail = User::where('email', $email)->firstOrFail();
                 $credentials = array('email' => $userEmail->email);
                 Password::remind($credentials, function ($message) {
                     $message->subject("The App password reset form");
                 });
                 Session::flash('status_success', 'Email has been sent to ' . Input::get('email') . '.');
                 return Redirect::route("user/request");
             } catch (Exception $e) {
                 Session::flash('status_error', 'Sorry, you entered an incorrect email or user with such email does not exist.12');
                 return Redirect::route("user/request");
             }
         }
         //end validation
     }
 }
开发者ID:AxelPardemann,项目名称:E-Learning-System-based-on-Laravel-and-Bootstrap,代码行数:28,代码来源:UserController.php

示例4: postRemind

 /**
  * Send an email to reset your password.
  */
 public function postRemind()
 {
     $credentials = array('email' => Input::get('email'));
     return Password::remind($credentials, function ($message, $user) {
         $message->subject('Reset your password');
     });
 }
开发者ID:samimohs,项目名称:wardrobe,代码行数:10,代码来源:LoginController.php

示例5: postRemind

 public function postRemind()
 {
     Password::remind(Input::only('email'), function ($message) {
         $message->subject('Password Reminder');
     });
     return Redirect::to('/account')->with('global', '<div class="alert alert-success" role="alert">An email with password reset has been sent.</div>');
 }
开发者ID:mlauren,项目名称:midway-gallery,代码行数:7,代码来源:PasswordController.php

示例6: send

 public function send()
 {
     //Manage sending of the email and validate input.
     $credentials = array('email' => Input::get('email'));
     return Password::remind($credentials, function ($message, $user) {
         $message->subject('Your Open Source Collaborative Consumption Marketplace Password Reset');
     });
 }
开发者ID:s-matic,项目名称:collab-consumption,代码行数:8,代码来源:PasswordController.php

示例7: postRemind

 /**
  * Handle a POST request to remind a user of their password.
  *
  * @return Response
  */
 public function postRemind()
 {
     switch ($response = Password::remind(Input::only('email'))) {
         case Password::INVALID_USER:
             return Redirect::back()->with('message', array('type' => 'danger', 'text' => 'Something went wrong. Please try again.'));
         case Password::REMINDER_SENT:
             return Redirect::back()->with('status', Lang::get($response))->with('message', array('type' => 'success', 'text' => 'Password reminder sent! Check your inbox or spam folder to reset your password'));
     }
 }
开发者ID:anchetaWern,项目名称:absentist,代码行数:14,代码来源:RemindersController.php

示例8: postRemind

 /**
  * Handle a POST request to remind a user of their password.
  *
  * @return \Illuminate\Http\Response
  */
 public function postRemind()
 {
     switch ($response = Password::remind(Input::only('email'))) {
         case Password::INVALID_USER:
             return Redirect::route('password.remind')->with('message', 'Your email is invalid');
         case Password::REMINDER_SENT:
             return Redirect::route('password.remind')->with('message', 'The password reminder has been sent. Check your email')->with('messageType', "success");
     }
 }
开发者ID:kcsamita,项目名称:laravelsnippets,代码行数:14,代码来源:RemindersController.php

示例9: sendPasswordRequest

 /**
  * Send user password-reset code
  */
 public function sendPasswordRequest()
 {
     $user = $this->user;
     $email = $user->email;
     Password::remind(compact('email'), function ($message, $user) {
         $message->subject('Your Password Reminder');
     });
     Session::flash('sent_password_request', $email);
 }
开发者ID:sgh1986915,项目名称:laravel-bizgym,代码行数:12,代码来源:AccountMailer.php

示例10: postRemind

 /**
  * Handle a POST request to remind a user of their password.
  *
  * @return Response
  */
 public function postRemind()
 {
     switch ($response = Password::remind(Input::only('email'))) {
         case Password::INVALID_USER:
             return Redirect::back()->with('error', Lang::get($response));
         case Password::REMINDER_SENT:
             return Redirect::back()->with('status', Lang::get($response));
     }
 }
开发者ID:eiswe,项目名称:website,代码行数:14,代码来源:RemindersController.php

示例11: postRemind

 /**
  * Handle a POST request to remind a user of their password.
  *
  * @return Response
  */
 public function postRemind()
 {
     $this->forgotPasswordForm->validate(Input::only('email'));
     switch ($response = Password::remind(Input::only('email'))) {
         case Password::INVALID_USER:
             return Redirect::back()->withErrorMessage(Lang::get($response));
         case Password::REMINDER_SENT:
             return Redirect::back()->withFlashMessage(Lang::get($response));
     }
 }
开发者ID:ArbindJain,项目名称:scrapkart,代码行数:15,代码来源:RemindersController.php

示例12: request

 public function request()
 {
     $response = Password::remind(Input::only('email'), function ($message, $user) {
         $message->subject(Lang::get('users.reset'));
     });
     if ($response == Password::INVALID_USER) {
         return Redirect::back()->with('error', Lang::get($response));
     } else {
         return Redirect::back()->with('success', Lang::get($response));
     }
 }
开发者ID:scmc,项目名称:learninglocker,代码行数:11,代码来源:PasswordController.php

示例13: store

 /**
  * Handle a POST request to remind a user of their password.
  *
  * @return Response
  */
 public function store()
 {
     switch ($response = Password::remind(Input::only('email'), function ($message) {
         $message->subject('Reconfiguración solicitada en Qdental');
     })) {
         case Password::INVALID_USER:
             return Redirect::back()->with('error', Lang::get($response));
         case Password::REMINDER_SENT:
             return Redirect::back()->with('status', Lang::get($response));
     }
 }
开发者ID:elioth010,项目名称:bg-dental,代码行数:16,代码来源:RemindersController.php

示例14: postRemind

 /**
  * Handle a POST request to remind a user of their password.
  *
  * @return Response
  */
 public function postRemind()
 {
     $email = Input::only('email');
     $email = $email['email'];
     switch ($response = Password::remind(Input::only('email'))) {
         case Password::INVALID_USER:
             return Redirect::back()->with('message', Lang::get($response));
         case Password::REMINDER_SENT:
             return View::make('register.find_password_ok', compact('email'));
     }
 }
开发者ID:fcode520,项目名称:phphub,代码行数:16,代码来源:RemindersController.php

示例15: postRemind

 /**
  * Handle a POST request to remind a user of their password.
  *
  * @return Response
  */
 public function postRemind()
 {
     switch ($response = Password::remind(Input::only('email'), function ($message) {
         $message->subject('SeAT Password Reset');
     })) {
         case Password::INVALID_USER:
             return Redirect::back()->withErrors(Lang::get($response));
         case Password::REMINDER_SENT:
             return Redirect::action('SessionController@getSignIn')->with('success', Lang::get($response));
     }
 }
开发者ID:boweiliu,项目名称:seat,代码行数:16,代码来源:RemindersController.php


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