Skip to content

Commit 9a07cc8

Browse files
committed
fix password hashing bug; closes pterodactyl#53
1 parent 4b2bac2 commit 9a07cc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Repositories/UserRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public function update($id, array $data)
124124
}
125125

126126
if(array_key_exists('password', $data)) {
127-
$user['password'] = Hash::make($data['password']);
127+
$data['password'] = Hash::make($data['password']);
128128
}
129129

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

0 commit comments

Comments
 (0)