Commit ed96a839 authored by Nicolas Widart's avatar Nicolas Widart

Pass the activated boolean

parent 3d25b881
......@@ -28,11 +28,11 @@ class SentryUserRepository implements UserRepository
* Create a user and assign roles to it
* @param array $data
* @param array $roles
* @return void
* @param bool $activated
*/
public function createWithRoles($data, $roles)
public function createWithRoles($data, $roles, $activated = false)
{
$user = Sentry::createUser(array_merge($data, ['activated' => true]));
$user = Sentry::createUser(array_merge($data, ['activated' => $activated]));
if (!empty($roles)) {
foreach ($roles as $roleId) {
$group = Sentry::findGroupById($roleId);
......
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