Commit ac3dbeb8 authored by bvipul's avatar bvipul

Solved #87

parent df471b87
...@@ -115,11 +115,19 @@ class UserRepository extends BaseRepository ...@@ -115,11 +115,19 @@ class UserRepository extends BaseRepository
//Send confirmation email if requested and account approval is off //Send confirmation email if requested and account approval is off
if (isset($data['confirmation_email']) && $user->confirmed == 0) { if (isset($data['confirmation_email']) && $user->confirmed == 0) {
$user->notify(new UserNeedsConfirmation($user->confirmation_code)); $email_type = 1;
} }
event(new UserCreated($user)); event(new UserCreated($user));
// Send email to the user
$options = [
'data' => $user->toArray(),
'email_template_type' => $email_type
];
createNotification("", 1, 2, $options);
return true; return true;
} }
......
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