We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7aef92a commit b76a09eCopy full SHA for b76a09e
pro/auth/sync.go
@@ -150,6 +150,13 @@ func syncUsers(idpUsers []idp.User) error {
150
if err != nil {
151
return err
152
}
153
+
154
+ // It's possible that a user can attempt to log in to Netmaker
155
+ // after the IDP is configured but before the users are synced.
156
+ // Since the user doesn't exist, a pending user will be
157
+ // created. Now, since the user is created, the pending user
158
+ // can be deleted.
159
+ _ = logic.DeletePendingUser(user.Username)
160
} else if dbUser.AuthType == models.OAuth {
161
if dbUser.AccountDisabled != user.AccountDisabled ||
162
dbUser.DisplayName != user.DisplayName ||
0 commit comments