Laravel 5.6
This commit is contained in:
@@ -5,6 +5,7 @@ namespace App\Http\Controllers\Auth;
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\User;
|
||||
use Illuminate\Foundation\Auth\RegistersUsers;
|
||||
use Illuminate\Support\Facades\Hash;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
|
||||
class RegisterController extends Controller
|
||||
@@ -78,7 +79,7 @@ class RegisterController extends Controller
|
||||
'name' => $data['name'],
|
||||
'display_name' => $data['name'],
|
||||
'email' => $data['email'],
|
||||
'password' => bcrypt($data['password']),
|
||||
'password' => Hash::make($data['password']),
|
||||
'is_protected' => $data['is_protected'] ?? false,
|
||||
'accept_analytics' => $data['accept_analytics'] ?? false
|
||||
]);
|
||||
|
Reference in New Issue
Block a user