Skip to content

Commit e5b404e

Browse files
authored
Fix avatar upload error handling (#35887) (#35890)
Backport #35887
1 parent 5842cd2 commit e5b404e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

services/auth/source/ldap/source_authenticate.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,7 @@ func (source *Source) Authenticate(ctx context.Context, user *user_model.User, u
105105
}
106106
}
107107
if source.AttributeAvatar != "" {
108-
if err := user_service.UploadAvatar(ctx, user, sr.Avatar); err != nil {
109-
return user, err
110-
}
108+
_ = user_service.UploadAvatar(ctx, user, sr.Avatar)
111109
}
112110
}
113111

0 commit comments

Comments
 (0)