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

feat: make user Alias unique on create - prevent accidentally double … #144

Merged

Conversation

AnSch1510
Copy link
Collaborator

…creation of a player

@AnSch1510 AnSch1510 self-assigned this Jul 16, 2024
@AnSch1510 AnSch1510 linked an issue Jul 16, 2024 that may be closed by this pull request
@AnSch1510 AnSch1510 requested a review from MaSch0212 July 16, 2024 19:50
@MaSch0212
Copy link
Owner

I think it would be good to check this in the frontend as well, so ab error can be displayed immediately without going to the server first.

@AnSch1510
Copy link
Collaborator Author

I think it would be good to check this in the frontend as well, so ab error can be displayed immediately without going to the server first.

But additionally check on server side 👍
I'll do the frontend change 👍

@AnSch1510
Copy link
Collaborator Author

@MaSch0212 I've added the client side check - and also the ability to open the previously named "user created" view (where you are able to copy the welcome message and the password) on the "edit User" page. With this, it is possible to get the welcome message in case a user has been created at an earlier time.

Notice the new button next to the password field
image

@MaSch0212
Copy link
Owner

Will have a look tomorrow.

@AnSch1510 AnSch1510 requested a review from MaSch0212 July 18, 2024 11:05
@MaSch0212 MaSch0212 enabled auto-merge (squash) July 18, 2024 19:21
@MaSch0212 MaSch0212 merged commit 6e4eee8 into main Jul 18, 2024
1 check passed
@MaSch0212 MaSch0212 deleted the 142-warn-if-user-would-be-created-which-alias-already-exists branch July 18, 2024 19:23
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.

Warn if user would be created which alias already exists
2 participants