mercredi 4 décembre 2019

Laravel Password Hash is incorrect

i am trying to update password in Laravel, password is updating but when i try to login it shows wrong details, i am not sure what i am doing wrong here.

public function passwordupdate(Request $request,$id) 
    {
$user = User::find($id);

     $user->password = Hash::make($request->password); //column updating with incorrect Hash
     $user->setRememberToken(Str::random(60));
     $user->active =0; //this value is updating correctly
 $user->save();
     return response()->json([
        'msg' => $user->password,
        ]);

}


via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire