Commit 2c948ecf by Triyah Fatmawati

Change hash to bcrypt

parent c0b63a66
...@@ -71,7 +71,7 @@ public function update(Request $request, $id){ ...@@ -71,7 +71,7 @@ public function update(Request $request, $id){
try{ try{
$id = decrypt($id); $id = decrypt($id);
$passwordbaru = Hash::make(strip_tags($request->passwordbaru)); $passwordbaru = bcrypt(strip_tags($request->passwordbaru));
$passwordlama = strip_tags($request->passwordlama); $passwordlama = strip_tags($request->passwordlama);
$oldpassword = User::where('id', $id)->first(); $oldpassword = User::where('id', $id)->first();
...@@ -97,7 +97,6 @@ public function update(Request $request, $id){ ...@@ -97,7 +97,6 @@ public function update(Request $request, $id){
// } // }
} }
catch(Exception $e){ catch(Exception $e){
dd($e);
Log::error($e); Log::error($e);
DB::rollBack(); DB::rollBack();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment