Permalink
Browse files

add argon support to create method in RegisterController

  • Loading branch information...
Ricard
Ricard committed Feb 10, 2018
1 parent cdc06ab commit 3332ff4cb2f4195ef07901667211da1797279d98
Showing with 2 additions and 1 deletion.
  1. +2 −1 app/Http/Controllers/Auth/RegisterController.php
@@ -4,6 +4,7 @@
use App\User;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Validator;
use Illuminate\Foundation\Auth\RegistersUsers;
@@ -65,7 +66,7 @@ protected function create(array $data)
return User::create([
'name' => $data['name'],
'email' => $data['email'],
'password' => bcrypt($data['password']),
'password' => Hash::make($data['password']),
]);
}
}

0 comments on commit 3332ff4

Please sign in to comment.