本文整理汇总了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);
}
}
示例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'));
}
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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'));
}
示例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'));
}
}
示例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);
}
}