Unverified Commit b950b334 authored by Vipul Basapati's avatar Vipul Basapati Committed by GitHub

Merge pull request #91 from bvipul/master

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