-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add account setting to link GitHub account #9465
Conversation
Not very useful...
oh right I forgot I broke legacy changelog too. i will fix that tomorrow 💤 |
basically revert some of the code that assumed GitHub username would never be null.
... I had a long day 😅 I reverted some of the changes I made to the |
|
||
abort_if($user === null, 422, osu_trans('accounts.github_user.error.no_contribution')); | ||
|
||
abort_if($user->user_id !== null, 422, osu_trans('accounts.github_user.error.already_linked')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can use also check if there's existing github user for the user id
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that check happens in create()
@cl8n is this ready for re-review? |
database/migrations/2023_09_12_230000_require_github_users_id_and_username.php
Outdated
Show resolved
Hide resolved
database/migrations/2023_09_12_230000_require_github_users_id_and_username.php
Outdated
Show resolved
Hide resolved
and an attempt to make it easier to read
so open source contributors can link themselves on changelogs