Commit b7ac3f31 authored by Roland Julien's avatar Roland Julien

aucun role

parent 0d7cde89
......@@ -49,7 +49,10 @@ class SentinelUserRepository implements UserRepository
public function createWithRoles($data, $roles)
{
$user = $this->user->create($data);
$user->roles()->attach($roles);
if (!is_null($roles)) {
$user->roles()->attach($roles);
}
$activation = Activation::create($user);
Activation::complete($user, $activation->code);
......
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