src/Controllers/Auth/PasswordController.php
public function postReset(Request $request, $code)
    {
        // Validate the form data
        $result = $this->validate($request, [
            'password' => 'required|confirmed|min:6',
        ]);

        // Attempt the password reset
        $result = $this->authManager->resetPassword($code, $request->get('password'));

        if ($result->isFailure()) {
            return $result->dispatch();
        }

        // Return the appropriate response
        return $result->dispatch(route('auth.login.form'));
    }
public function postReset(Request $request, $code)
    {
        // Validate the form data
        $result = $this->validate($request, [
            'password' => 'required|confirmed|min:6',
        ]);

        // Attempt the password reset
        $result = $this->authManager->resetPassword($code, $request->get('password'));

        if ($result->isFailure()) {
            return $result->dispatch();
        }

        // Return the appropriate response
        return $result->dispatch(route('auth.login.form'));
    }
public function postReset ( Request $ request , $ code ) { // Validate the form data $ result = $ this -> validate ( $ request , [ 'password' => 'required|confirmed|min:6' , ] ) ; // Attempt the password reset $ result = $ this -> authManager -> resetPassword ( $ code , $ request -> get ( 'password' ) ) ; if ( $ result -> isFailure ( ) ) { return $ result -> dispatch ( ) ; } // Return the appropriate response return $ result -> dispatch ( route ( 'auth.login.form' ) ) ; }
Process a password reset form submission
@param  Request $request
@param  string  $code
@return Response|Redirect
Process a password reset form submission