mirror of
https://github.com/netbirdio/dex.git
synced 2026-05-22 18:43:53 -07:00
fix: suppress deprecation warning for userAttr when not set (#4539)
Signed-off-by: maksim.nabokikh <max.nabokih@gmail.com>
This commit is contained in:
@@ -198,7 +198,9 @@ func userMatchers(c *Config, logger *slog.Logger) []UserMatcher {
|
||||
return c.GroupSearch.UserMatchers
|
||||
}
|
||||
|
||||
logger.Warn(`use "groupSearch.userMatchers" option instead of "userAttr/groupAttr" fields`, "deprecated", true)
|
||||
if c.GroupSearch.UserAttr != "" || c.GroupSearch.GroupAttr != "" {
|
||||
logger.Warn(`use "groupSearch.userMatchers" option instead of "userAttr/groupAttr" fields`, "deprecated", true)
|
||||
}
|
||||
return []UserMatcher{
|
||||
{
|
||||
UserAttr: c.GroupSearch.UserAttr,
|
||||
|
||||
Reference in New Issue
Block a user