Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
264
Merge Requests
28
CI / CD
Security & Compliance
Packages
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Commits
2b31256f
Commit
2b31256f
authored
16 hours ago
by
Ben Hayward
Browse files
Options
Download
Updated for feedback
parent
8954440c
fix/logout-surge-token-deletion-1270
1 merge request
!436
Surge token deletion on logout #1270
Pipeline
#108524651
passed with stages
in 7 minutes and 4 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
Core/Notification/Extensions/Push.php
View file @
2b31256f
...
...
@@ -106,6 +106,9 @@ class Push implements Interfaces\NotificationExtensionInterface
$push
[
'big_picture'
]
=
static
::
getNotificationBigPicture
(
$notification
,
$from_user
,
$entity
);
$push
[
'group'
]
=
static
::
getNotificaitonGroup
(
$notification
,
$from_user
,
$entity
);
// temporary logging
error_log
(
var_export
(
$push
,
true
));
return
QueueClient
::
build
()
->
setExchange
(
$notification
[
'exchange'
])
->
setQueue
(
$notification
[
'queue'
])
...
...
This diff is collapsed.
Core/Sessions/Manager.php
View file @
2b31256f
...
...
@@ -249,7 +249,7 @@ class Manager
if
(
$this
->
session
)
{
if
(
!
$this
->
user
)
{
// If no user set grab from session.
$this
->
user
=
new
User
(
$this
->
session
->
getLoggedInUser
());
$this
->
user
=
new
User
(
$this
->
session
->
getLoggedInUser
()
,
false
);
}
$this
->
user
->
setSurgeToken
(
''
)
// Delete push notification token.
...
...
This diff is collapsed.
Entities/User.php
View file @
2b31256f
...
...
@@ -1228,7 +1228,6 @@ class User extends \ElggUser
'toaster_notifications'
,
'mode'
,
'btc_address'
,
'surge_token'
,
]);
}
...
...
This diff is collapsed.
Please
register
or
sign in
to comment