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
228
Issues
228
List
Boards
Labels
Service Desk
Milestones
Merge Requests
30
Merge Requests
30
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
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
190e4760
Commit
190e4760
authored
12 minutes ago
by
Mark Harding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(feat): set user guids of mobile too, use the Session class
parent
eb3c70ee
master
No related merge requests found
Pipeline
#77861750
waiting for manual action with stages
in 9 minutes and 21 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
Session.php
Core/Session.php
+12
-0
No files found.
Core/Session.php
View file @
190e4760
...
...
@@ -5,6 +5,7 @@ use Minds\Core;
use
Minds\Core\Di\Di
;
use
Minds\Common\Cookie
;
use
Minds\Entities\User
;
use
Sentry
;
/**
* Minds Session Manager
...
...
@@ -96,6 +97,17 @@ class Session extends base
public
static
function
setUser
(
$user
)
{
static
::
$user
=
$user
;
// Update sentry with the current user
// TODO: Move to a delegate
if
(
$user
)
{
Sentry\configureScope
(
function
(
Sentry\State\Scope
$scope
)
use
(
$user
)
:
void
{
$scope
->
setUser
([
'id'
=>
(
string
)
$user
->
getGuid
(),
]);
});
}
if
(
!
$user
||
!
static
::
$user
->
username
||
static
::
$user
->
isBanned
()
...
...
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