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
b950b334
Unverified
Commit
b950b334
authored
Dec 19, 2017
by
Vipul Basapati
Committed by
GitHub
Dec 19, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #91 from bvipul/master
Solved #87
parents
df471b87
ac3dbeb8
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 @
b950b334
...
@@ -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
;
}
}
...
...
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