Skip to content

Commit 11d5199

Browse files
committed
password wasn't hashed and sent to database fixed.
1 parent 8988538 commit 11d5199

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Tricks/Repositories/Eloquent/UserRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ protected function usernameIsAllowed($username)
149149
public function updateSettings(User $user, array $data)
150150
{
151151
$user->username = $data['username'];
152-
$user->password = ($data['password'] != '') ? $data['password'] : $user->password;
152+
$user->password = ($data['password'] != '') ? Hash::make($data['password']) : $user->password;
153153

154154
if ($data['avatar'] != '') {
155155
File::move(public_path().'/img/avatar/temp/'.$data['avatar'], 'img/avatar/'.$data['avatar']);

0 commit comments

Comments
 (0)