Initially i have a plain password but after hashing when i try to login server says These credentials do not match our records.Any help ? here is the code which i used to bcrypt all the user password .
$users=UsersModel::get();
    foreach ($users as $users) {
        $users->password = bcrypt($users->password);
     $users->save();
    }
                return $users;
 
    