Commit 2c948ecf by Triyah Fatmawati

Change hash to bcrypt

parent c0b63a66
......@@ -71,7 +71,7 @@ public function update(Request $request, $id){
try{
$id = decrypt($id);
$passwordbaru = Hash::make(strip_tags($request->passwordbaru));
$passwordbaru = bcrypt(strip_tags($request->passwordbaru));
$passwordlama = strip_tags($request->passwordlama);
$oldpassword = User::where('id', $id)->first();
......@@ -97,7 +97,6 @@ public function update(Request $request, $id){
// }
}
catch(Exception $e){
dd($e);
Log::error($e);
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