forked from mirror/pixelfed
set session locale fallback using global config
This commit is contained in:
parent
4762efe8ee
commit
f81c642087
1 changed files with 1 additions and 1 deletions
|
@ -136,6 +136,6 @@ class AuthLogin
|
||||||
|
|
||||||
protected function userLanguage($user)
|
protected function userLanguage($user)
|
||||||
{
|
{
|
||||||
session()->put('locale', $user->language ?? 'en');
|
session()->put('locale', $user->language ?? config('app.locale'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue