Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
laravel-adminpanel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
laravel-adminpanel
Commits
ac3dbeb8
Commit
ac3dbeb8
authored
Dec 19, 2017
by
bvipul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Solved #87
parent
df471b87
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
UserRepository.php
app/Repositories/Backend/Access/User/UserRepository.php
+9
-1
No files found.
app/Repositories/Backend/Access/User/UserRepository.php
View file @
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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment