Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
269
Issues
269
List
Boards
Labels
Service Desk
Milestones
Merge Requests
44
Merge Requests
44
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
List
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Commits
ea80c2fa
Commit
ea80c2fa
authored
17 hours ago
by
Ben Hayward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updating
parent
692b8561
fix/banned-email-noreply-867
1 merge request
!345
WIP: [Sprint/OldfashionedOwl](fix): Updated from address in ban email to info@minds.com
Pipeline
#89875915
canceled with stages
in 16 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
6 deletions
+9
-6
Core/Channels/Ban.php
Core/Channels/Ban.php
+2
-2
Core/Email/Mailer.php
Core/Email/Mailer.php
+1
-2
Core/Reports/Events.php
Core/Reports/Events.php
+2
-1
settings.example.php
settings.example.php
+4
-1
No files found.
Core/Channels/Ban.php
View file @
ea80c2fa
...
...
@@ -81,11 +81,11 @@ class Ban
*/
public
function
ban
(
$banReason
=
''
)
{
error_log
(
"ban called"
);
if
(
!
$this
->
user
)
{
throw
new
\Exception
(
'Missing User'
);
}
$banned
=
$this
->
banDelegate
->
ban
(
$this
->
user
,
$banReason
);
if
(
$banned
)
{
$this
->
logoutDelegate
->
logout
(
$this
->
user
);
...
...
This diff is collapsed.
Click to expand it.
Core/Email/Mailer.php
View file @
ea80c2fa
...
...
@@ -52,9 +52,8 @@ class Mailer
$this
->
mailer
->
ClearAllRecipients
();
$this
->
mailer
->
ClearAttachments
();
error_log
(
var_export
(
$message
->
from
,
true
));
if
(
isset
(
$message
->
from
))
{
if
(
isset
(
$message
->
from
[
'email'
]
))
{
$this
->
mailer
->
ClearReplyTos
();
$this
->
mailer
->
addReplyTo
(
$message
->
from
[
'email'
],
$fromName
);
}
...
...
This diff is collapsed.
Click to expand it.
Core/Reports/Events.php
View file @
ea80c2fa
...
...
@@ -27,11 +27,12 @@ class Events
->
set
(
'email'
,
$user
->
getEmail
())
->
set
(
'reason'
,
$user
->
ban_reason
)
->
set
(
'user'
,
$user
);
$message
=
new
Core\Email\Message
();
$message
->
setTo
(
$user
)
->
setMessageId
(
implode
(
'-'
,
[
$user
->
guid
,
sha1
(
$user
->
getEmail
()),
sha1
(
'register-'
.
time
())]))
->
setSubject
(
"You are banned from Minds."
)
->
setFrom
(
$config
->
get
(
'contact_
email'
)
)
->
setFrom
(
$config
->
get
(
'contact_
details'
)[
'email'
],
$config
->
get
(
'contact_details'
)[
'name'
]
)
->
setHtml
(
$template
);
Di
::
_
()
->
get
(
'Mailer'
)
->
queue
(
$message
);
...
...
This diff is collapsed.
Click to expand it.
settings.example.php
View file @
ea80c2fa
...
...
@@ -582,7 +582,10 @@ $CONFIG->set('pro', [
'dynamodb_table_name'
=>
'traefik'
,
]);
$CONFIG
->
set
(
'contact_email'
,
'info@minds.com'
);
$CONFIG
->
set
(
'contact_details'
,
[
'name'
=>
'Minds'
,
'email'
=>
'info@minds.com'
,
]);
$CONFIG
->
set
(
'upgrades'
,
[
'pro'
=>
[
...
...
This diff is collapsed.
Click to expand it.
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