Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
158
Issues
158
List
Boards
Labels
Service Desk
Milestones
Merge Requests
41
Merge Requests
41
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Packages
Packages
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
a7729dfd
Commit
a7729dfd
authored
1 hour ago
by
Mark Harding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(chore): fix faux users being made on logins
parent
587452ad
master
No related merge requests found
Pipeline
#66711558 (#762)
passed with stages
in 7 minutes and 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
users.php
lib/users.php
+7
-11
No files found.
lib/users.php
View file @
a7729dfd
...
...
@@ -1145,18 +1145,14 @@ function set_last_action($user_guid) {
/**
* Sets the last logon time of the given user to right now.
*
* @param
int $user_guid The user GUID
* @param
User $User
*
* @return void
*/
function
set_last_login
(
$user_guid
)
{
$user_guid
=
(
int
)
$user_guid
;
global
$CONFIG
;
$time
=
time
();
function
set_last_login
(
$user
)
{
$time
=
time
();
$user
=
new
ElggUser
(
$user_guid
);
$user
->
last_login
=
$time
;
$user
->
ip
=
$_SERVER
[
'REMOTE_ADDR'
];
$user
->
save
();
//execute_delayed_write_query($query);
}
$user
->
last_login
=
$time
;
$user
->
ip
=
$_SERVER
[
'REMOTE_ADDR'
];
$user
->
save
();
}
\ No newline at end of file
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