mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-13 17:05:47 +01:00
fix: change groups check to undefined instead of not to not show warning when 0 groups in list
This commit is contained in:
@@ -25,7 +25,7 @@ const provider: OAuthConfig<Profile> = {
|
||||
async profile(profile) {
|
||||
const user = await adapter.getUserByEmail!(profile.email);
|
||||
|
||||
if (!profile.groups) {
|
||||
if (profile.groups == undefined) {
|
||||
Consola.warn('no groups found in profile of oidc user');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user