Skip to content

Commit

Permalink
Update User.php
Browse files Browse the repository at this point in the history
  • Loading branch information
realodix committed Nov 14, 2023
1 parent 87abe79 commit b403fab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,13 @@ public function signature(): string
if (auth()->check() === false) {
$dd = Helper::deviceDetector();

return implode([
return hash('sha3-256', implode([
'ip' => request()->ip(),
'browser' => $dd->getClient('name'),
'os' => $dd->getOs('name').$dd->getOs('version'),
'device' => $dd->getDeviceName().$dd->getModel().$dd->getBrandName(),
'lang' => request()->getPreferredLanguage(),
]);
]));
}

return (string) auth()->id();
Expand Down

0 comments on commit b403fab

Please sign in to comment.