src/Stevemo/Cpanel/Controllers/PasswordController.php
public function postForgot()
    {
        try
        {
            $email = Input::get('email');
            $this->passForm->forgot($email);
            return View::make(Config::get('cpanel::views.password_send'))
                ->with('email', $email);
        }
        catch (UserNotFoundException $e)
        {
            return Redirect::back()
                ->with('password_error', $e->getMessage());
        }
    }
public function postForgot()
    {
        try
        {
            $email = Input::get('email');
            $this->passForm->forgot($email);
            return View::make(Config::get('cpanel::views.password_send'))
                ->with('email', $email);
        }
        catch (UserNotFoundException $e)
        {
            return Redirect::back()
                ->with('password_error', $e->getMessage());
        }
    }
public function postForgot ( ) { try { $ email = Input :: get ( 'email' ) ; $ this -> passForm -> forgot ( $ email ) ; return View :: make ( Config :: get ( 'cpanel::views.password_send' ) ) -> with ( 'email' , $ email ) ; } catch ( UserNotFoundException $ e ) { return Redirect :: back ( ) -> with ( 'password_error' , $ e -> getMessage ( ) ) ; } }
Find the user and send a email with the reset code

@author Steve Montambeault
@link   http://stevemo.ca

@return \Illuminate\Http\RedirectResponse|\Illuminate\View\View
Find the user and send a email with the reset code