diff --git a/src/app/Listeners/SuccessfulLogin.php b/src/app/Listeners/SuccessfulLogin.php index f57f065..96e9452 100644 --- a/src/app/Listeners/SuccessfulLogin.php +++ b/src/app/Listeners/SuccessfulLogin.php @@ -29,6 +29,10 @@ class SuccessfulLogin public function handle(Login $event): void { Session::put('timezone_name', $event->user->timezone_name); + + // TODO: this may need to be reworked so that the language is stored + // in a cookie and attempted to be retrieved from there + // first before pulling from the database. Session::put('language', $event->user->language->locale); // Optionally log the info