Skip to content

Commit 648eaac

Browse files
committed
hardening
1 parent ef487a6 commit 648eaac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/Http/Controllers/ProfilesController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
use File;
1414
use Illuminate\Database\Eloquent\ModelNotFoundException;
1515
use Illuminate\Http\Request;
16+
use Illuminate\Support\Facades\Hash;
1617
use Illuminate\Support\Facades\Session;
1718
use Image;
1819
use jeremykenedy\Uuid\Uuid;
@@ -213,7 +214,7 @@ public function updateUserPassword(UpdateUserPasswordRequest $request, $id)
213214
$ipAddress = new CaptureIpTrait();
214215

215216
if ($request->input('password') !== null) {
216-
$user->password = bcrypt($request->input('password'));
217+
$user->password = Hash::make($request->input('password'));
217218
}
218219

219220
$user->updated_ip_address = $ipAddress->getClientIp();

0 commit comments

Comments
 (0)