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
  • 103,626
  • 17
  • 118
  • 172
Raja Tayyab
  • 29
  • 1
  • 5

0 Answers0