Skip to content

Commit

Permalink
fix password hashing bug; closes #53
Browse files Browse the repository at this point in the history
  • Loading branch information
DaneEveritt committed Feb 4, 2016
1 parent 4b2bac2 commit 9a07cc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Repositories/UserRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public function update($id, array $data)
}

if(array_key_exists('password', $data)) {
$user['password'] = Hash::make($data['password']);
$data['password'] = Hash::make($data['password']);
}

return Models\User::findOrFail($id)->update($data);
Expand Down

0 comments on commit 9a07cc8

Please sign in to comment.