Skip to content

Commit 141bcec

Browse files
taoduncanmcclean
andauthored
Use the Authentication Guard that is defined in the users config file. (#107)
* Update ServiceProvider.php Use Authentication Guard defined in the configuration file. * inline --------- Co-authored-by: Duncan McClean <[email protected]>
1 parent 8abc36f commit 141bcec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ public function bootAddon()
3030
'avatar' => $user->avatar(),
3131
'initials' => $user->initials(),
3232
];
33-
});
33+
}, ['guards' => [config('statamic.users.guards.cp')]]);
3434
}
3535
}

0 commit comments

Comments
 (0)