mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-14 01:15: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) {
|
async profile(profile) {
|
||||||
const user = await adapter.getUserByEmail!(profile.email);
|
const user = await adapter.getUserByEmail!(profile.email);
|
||||||
|
|
||||||
if (!profile.groups) {
|
if (profile.groups == undefined) {
|
||||||
Consola.warn('no groups found in profile of oidc user');
|
Consola.warn('no groups found in profile of oidc user');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user