Added request WCA id page, and cleaned up error messages when trying to log in #267
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is some long overdue polishing with our accounts system.
A lot of people think they already have WCA website accounts because they have a WCA id, or because they used the WCA website to register. Now when you try to log in with an unassigned WCA id, we give a helpful message (#235):
If they follow those instructions and create an account, they will see a notification to request a WCA id:
Clicking that notification will take you to the "request a WCA id" page:
After they choose a WCA id, as per @Luis-J-Ianez's idea, we suggest some likely delegates, but we also give them a search box to pick any delegate:
Note that we don't let them request a WCA id that has already been assigned to a non-dummy user:
But you can request a WCA id that belongs to a dummy account:
After selecting a WCA id and a delegate, the user will see a success! message:
Both the delegate and the user will be emailed:
And the delegate will see a notification every time they log in:
The "approve a WCA id request" piece of of this is the least polished, but I think it works fine. First you click approve:
Which just moves the WCA id from the unconfirmed textbox into the confirmed text box:
The delegate still has to press save after this.