Skip to content

Conversation

pan93412
Copy link
Member

@pan93412 pan93412 commented Oct 6, 2025

No description provided.

@pan93412 pan93412 self-assigned this Oct 6, 2025
@linear
Copy link

linear bot commented Oct 6, 2025

@pan93412 pan93412 requested a review from Copilot October 6, 2025 19:17
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enables automatic updates of user names and avatars when existing users authenticate through OAuth providers. Previously, when an existing user logged in, their name and avatar would remain unchanged from the original values.

  • Updates existing user name and avatar fields to match OAuth provider information during login
  • Adds comprehensive test coverage for various scenarios including verified users and empty avatar handling
  • Modifies test assertions to verify the new update behavior instead of preserving original values

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
internal/useraccount/register_flow.go Adds logic to update existing user's name and avatar with OAuth data
internal/useraccount/register_flow_test.go Adds test cases for name/avatar updates and updates existing test assertions

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@pan93412 pan93412 merged commit 653a5c9 into main Oct 6, 2025
1 check passed
@pan93412 pan93412 deleted the pan93412/dbp-87-實作-user-預先註冊 branch October 6, 2025 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant