Fix avatar upload error handling (#35887) (#35890)

Backport #35887
This commit is contained in:
wxiaoguang authored and GitHub committed 2025-11-07 11:25:34 +08:00
1 parent 5842cd23a6
commit e5b404ec53
1 file changed
+1 -3
@@ -105,9 +105,7 @@ func (source *Source) Authenticate(ctx context.Context, user *user_model.User, u
}
}
if source.AttributeAvatar != "" {
if err := user_service.UploadAvatar(ctx, user, sr.Avatar); err != nil {
return user, err
}
_ = user_service.UploadAvatar(ctx, user, sr.Avatar)
}
}