0

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;
O. Jones
  • 92,698
  • 17
  • 108
  • 152

0 Answers0