Skip to content

Improve handling of account registration errors#36600

Merged
peppy merged 2 commits intoppy:masterfrom
bdach:registration-errors-again
Feb 8, 2026
Merged

Improve handling of account registration errors#36600
peppy merged 2 commits intoppy:masterfrom
bdach:registration-errors-again

Conversation

@bdach
Copy link
Copy Markdown
Collaborator

@bdach bdach commented Feb 6, 2026

Specify Accept header in registration request

The lack of it meant that in specific scenarios web would respond with a chunk of HTML instead of JSON.

Allow showing registration error message even if no redirect is given

There are scenarios where this can happen, and if it did, previously the strict requirement to have both would cause the specific message to be discarded and replaced with the generic "something happened" one.

bdach added 2 commits February 6, 2026 09:08
The lack of it meant that in specific scenarios web would respond with
a chunk of HTML instead of JSON.
There are scenarios where this can happen, and if it did, previously the
strict requirement to have both would cause the specific message to be
discarded and replaced with the generic "something happened" one.
@bdach bdach self-assigned this Feb 6, 2026
@bdach bdach added the area:online functionality Deals with online fetching / sending but don't change much on a surface UI level. label Feb 6, 2026
@peppy peppy moved this from Inbox to Pending Review in osu! team task tracker Feb 6, 2026
@peppy peppy self-requested a review February 8, 2026 15:41
AddParameter(@"user[user_email]", Email);
AddParameter(@"user[password]", Password);

AddHeader(@"Accept", @"application/json");
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do wonder if we should specify this in the base class 🤷

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

If the base class was OsuJsonWebRequest, it would already have been specified. But this isn't that, because of reasons I'm uncertain of at this time but suspect to be related to passing params in query rather than body as json.

@peppy peppy merged commit 7263551 into ppy:master Feb 8, 2026
8 of 10 checks passed
@github-project-automation github-project-automation bot moved this from Pending Review to Done in osu! team task tracker Feb 8, 2026
@bdach bdach deleted the registration-errors-again branch February 9, 2026 07:26
minetoblend pushed a commit to minetoblend/osu that referenced this pull request Feb 9, 2026
## [Specify `Accept` header in registration
request](ppy@28edb78)

The lack of it meant that in specific scenarios web would respond with a
chunk of HTML instead of JSON.

## [Allow showing registration error message even if no redirect is
given](ppy@6ad4994)

There are scenarios where this can happen, and if it did, previously the
strict requirement to have both would cause the specific message to be
discarded and replaced with the generic "something happened" one.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:online functionality Deals with online fetching / sending but don't change much on a surface UI level. size/S

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants