[SECURITY] Refactor
This commit is contained in:
parent
6438092d86
commit
08e5b313ce
@ -81,8 +81,8 @@ class Security extends Controller
|
|||||||
throw new \Exception(_m('Invalid nickname'));
|
throw new \Exception(_m('Invalid nickname'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$profile = new Profile($data['nickname']);
|
$profile = Profile::create(['nickname' => $data['nickname']]);
|
||||||
$user = new LocalUser($data['nickname'], $data['email'], $data['password']);
|
$user = LocalUser::create(['nickname' => $data['nickname'], 'email' => $data['email'], 'password' => $data['password']]);
|
||||||
|
|
||||||
DB::persist($user);
|
DB::persist($user);
|
||||||
DB::persist($profile);
|
DB::persist($profile);
|
||||||
|
Loading…
Reference in New Issue
Block a user