Skip to content

Commit

Permalink
πŸ› Bug fix: Double login log
Browse files Browse the repository at this point in the history
  • Loading branch information
anditv21 committed Dec 10, 2023
1 parent e83d468 commit 258bb6e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/models/UsersModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -596,8 +596,6 @@ protected function loglogin()
// Update the last login time and current login time in one query
$this->prepare("UPDATE `users` SET `lastLogin` = `currentLogin`, `currentLogin` = ? WHERE `username` = ?");
$this->statement->execute([$loginTime, $username]);

$this->loguser($username, "Login");
} catch (PDOException $e) {

error_log("Error updating login time: " . $e->getMessage());
Expand Down Expand Up @@ -956,6 +954,7 @@ protected function get_user_Browser()
return $userBrowser;
}



protected function get_user_os()
{
Expand Down

0 comments on commit 258bb6e

Please sign in to comment.