Skip to content

Commit

Permalink
that worked, now add a flash message back in
Browse files Browse the repository at this point in the history
  • Loading branch information
fredbradley committed Apr 11, 2024
1 parent fe21de5 commit 5f3f030
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Http/Controllers/Auth/FireflyAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,10 @@ private function findOrCreateUserAndLogin(string $xmlString, Request $request):
auth()->user()->update(['updated_at' => now()]);
// Fake request data
$request->merge(['email' => $user->email, 'username' => $user->email, 'password' => 'cranleigh12']);
session()->flash('alert-success', 'You have logged in as: '.auth()->user()->name);

return $this->sendLoginResponse($request);

// Let them know they've logged in
session()->flash('alert-success', 'You have logged in as: '.auth()->user()->name);
}
}

0 comments on commit 5f3f030

Please sign in to comment.