mirror of
https://github.com/YunoHost-Apps/pixelfed_ynh.git
synced 2024-09-03 20:06:04 +02:00
Update AuthLogin listener
This commit is contained in:
parent
c819bfe351
commit
abc738a532
1 changed files with 5 additions and 0 deletions
|
@ -25,6 +25,11 @@ class AuthLogin
|
|||
public function handle($event)
|
||||
{
|
||||
$user = $event->user;
|
||||
|
||||
if(!$user) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (empty($user->settings)) {
|
||||
DB::transaction(function() use($user) {
|
||||
UserSetting::firstOrCreate([
|
||||
|
|
Loading…
Add table
Reference in a new issue