Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Prevent accidental user overwrites#139

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
aine-etke merged 4 commits intomainfromprevent-accidental-overwrites
Nov 12, 2024

Conversation

@beastafk
Copy link
Contributor

@beastafkbeastafk commentedNov 11, 2024
edited by aine-etke
Loading

Synapse Admin API providesCreateor modify API endpoint that allows overwriting existing users by default.

Sometimes, you may want such functionality, but there is a huge change that in the vast majority of cases that will lead to accidental/unexpected overwrites.

Luckily, a new endpoint was added to the Synapse Admin API, that can be used to prevent unexpected users overwrite:https://element-hq.github.io/synapse/latest/admin_api/user_admin_api.html#check-username-availability

Please make Synapse Admin to call that endpoint before creating a new user, and if there is already existing user with this username, show a modal window with "Warning! This username is already taken. Are you certain that you intend to overwrite the existing user?" alert and options to continue (i.e., send the request), and cancel.

It would be amazing if that check could be added to the new user form near the Username field as well, so when you're entering the username, you will see something like "✔️ username is available" and "⚠️ username is already taken" messages near the input field

image

jamazi reacted with hooray emoji
@aine-etke
Copy link
Member

@aine-etkeaine-etke merged commitb94b782 intomainNov 12, 2024
1 check passed
@aine-etkeaine-etke deleted the prevent-accidental-overwrites branchNovember 12, 2024 08:15
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@beastafk@aine-etke

[8]ページ先頭

©2009-2025 Movatter.jp