Symfony\Component\Routing\Exception\RouteNotFoundException Route [login] not defined

1084
December 13, 2019, at 11:40 PM

I do not know what I am doing wrong please help. I am trying to update user password. Whenever I click submit button, the thing is going to bring error "Route[login] not found". I have tried a lot on it I can't figure anything out please help.

public function userUpdatePassword(Request $request)
{
    //route view
    if ($request->isMethod('post')) {
        $data=$request->all();
        $this->validate($request,[
                'new_password' => 'required|min:10',                    
                'password_confirmation' => 'required|same:new_password'    
            ]);
        $user_id=Auth::user()->id;
        $old_password=User::where('id', $user_id)->first();
        $current_password=$data['current_password'];
        if (Hash::check($current_password, $old_password->password)) {
            //update password
            $new_password=bcrypt($data['new_password']);
            User::where('id', $user_id)->update(['password'=>$new_password]);
            return redirect()->back()->with("flash_message_success","The New Password Has been Updated");
        } else{
            return redirect()->back()->with("flash_message_error","The Current password  is Incorrect");
        }
        // echo '<pre>'; print_r($data);  die;
    }
    //return view('user.user_changepassword');
}
Rent Charter Buses Company
READ ALSO
URL Too Long when posting base64 encode image using $_GET

URL Too Long when posting base64 encode image using $_GET

I am using TCPDF to create a once off document of data captured by users

182
Python manage.py runserver issuing the no module Error

Python manage.py runserver issuing the no module Error

Trying to runserver but I'm getting this errors

152
Delete record using jquery ajax from a table whose rows are appended using ajax?

Delete record using jquery ajax from a table whose rows are appended using ajax?

I want to delete table record on click on delete button using jquery ajaxBut table rows are populated in table body using ajax on document load

86
Is it possible to specify the behavior of EOL when using XMLOutputFactory? [duplicate]

Is it possible to specify the behavior of EOL when using XMLOutputFactory? [duplicate]

I like to write an xml Elem to a file, but I want to set the line separator between each node of the elem, so when opening the file under windows or ubuntu I have the correct formatfor example :

113