fix password hashing bug; closes #53
This commit is contained in:
parent
4b2bac2fce
commit
9a07cc83d1
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ class UserRepository
|
||||||
}
|
}
|
||||||
|
|
||||||
if(array_key_exists('password', $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);
|
return Models\User::findOrFail($id)->update($data);
|
||||||
|
|
Loading…
Reference in a new issue