mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-12 08:14:10 +00:00
refactor: Update code to use str() instead of Str::of() for string manipulation
This commit is contained in:
1 parent
1266810c4d
commit
2c92cc40e1
38 files changed
+101
-126
No files matched your search
@@ -81,8 +81,8 @@ class Controller extends BaseController
|
||||
$token = request()->get('token');
|
||||
if ($token) {
|
||||
$decrypted = Crypt::decryptString($token);
|
||||
$email = Str::of($decrypted)->before('@@@');
|
||||
$password = Str::of($decrypted)->after('@@@');
|
||||
$email = str($decrypted)->before('@@@');
|
||||
$password = str($decrypted)->after('@@@');
|
||||
$user = User::whereEmail($email)->first();
|
||||
if (! $user) {
|
||||
return redirect()->route('login');
|
||||
|
||||
Reference in new issue
Block a user