From b403fab30770214f09d7bc2dda8ec9e3685042a7 Mon Sep 17 00:00:00 2001 From: Kei Date: Wed, 15 Nov 2023 02:30:13 +0700 Subject: [PATCH] Update User.php --- app/Models/User.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/User.php b/app/Models/User.php index 9ee0de2fe..e44d718d5 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -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();