Skip to content
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

username already taken check? #99

Open
frollard opened this issue Oct 29, 2022 · 1 comment
Open

username already taken check? #99

frollard opened this issue Oct 29, 2022 · 1 comment

Comments

@frollard
Copy link
Contributor

def change_discourse_username(username, new_username):

I presume discourse returns a 400ish error but we're not checking for it before trying to change names; don't want to test on live.

@tannercollin
Copy link
Contributor

tannercollin commented Oct 30, 2022

Yeah Discourse will return an error in this case. But this won't be checked if there's a name collision on sign up (ie. another tanner.collin signs up to Spaceport), which can't happen because Spaceport will prevent signup unless someone set a custom first.last Discourse username that matches. We'll cross that bridge when it comes. first.last was kind of a mistake.

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

No branches or pull requests

2 participants