From fe21de56e883a8f1cb19fe8c7769f5315d36c0d3 Mon Sep 17 00:00:00 2001 From: Fred Bradley Date: Thu, 11 Apr 2024 13:26:55 +0100 Subject: [PATCH] add some fake request data to see if that removes the mb_strtolower error --- app/Http/Controllers/Auth/FireflyAuth.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Http/Controllers/Auth/FireflyAuth.php b/app/Http/Controllers/Auth/FireflyAuth.php index 14af043..2266872 100644 --- a/app/Http/Controllers/Auth/FireflyAuth.php +++ b/app/Http/Controllers/Auth/FireflyAuth.php @@ -64,6 +64,8 @@ private function findOrCreateUserAndLogin(string $xmlString, Request $request): $this->guard()->login($existingUser); // Update db with login time auth()->user()->update(['updated_at' => now()]); + // Fake request data + $request->merge(['email' => $user->email, 'username' => $user->email, 'password' => 'cranleigh12']); return $this->sendLoginResponse($request); // Let them know they've logged in