Commit 7de42dfd authored by Nicolas Widart's avatar Nicolas Widart

Merge branch 'julienroland-master'

* julienroland-master:
  aucun role
  auto-activation
parents 361c57f2 8314d5ba
......@@ -49,12 +49,13 @@ class SentinelUserRepository implements UserRepository
public function createWithRoles($data, $roles)
{
$user = $this->user->create($data);
if (!empty($roles)) {
$user->roles()->attach($roles);
}
$code = Activation::create($user);
Activation::complete($user, $code);
$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