-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Create user token API allows creating tokens with the same name #5587
Labels
Comments
unknwon
added
🔨 enhancement
Make it better, faster
👋 good first issue
Good for newcomers
labels
Jan 31, 2019
richmahn
referenced
this issue
in unfoldingWord/dcs
Feb 4, 2019
* fix nil pointer * remove nil check and just call loadRepo regardless
frodeaa
added a commit
to frodeaa/gogs
that referenced
this issue
Oct 13, 2019
Fail with 422 Unprocessable Entity if the token name already exist ref: gogs#5587
frodeaa
added a commit
to frodeaa/gogs
that referenced
this issue
Oct 13, 2019
Fail with 422 Unprocessable Entity if the token name already exist ref: gogs#5587
frodeaa
added a commit
to frodeaa/gogs
that referenced
this issue
Oct 13, 2019
Fail with 422 Unprocessable Entity if the token name already exist ref: gogs#5587
unknwon
pushed a commit
that referenced
this issue
Oct 15, 2019
* api/v1: don't allow multiple tokens with same name Fail with 422 Unprocessable Entity if the token name already exist ref: #5587 * Move new token error type to models/errors/token * Remove "useless" ListAccessTokensByName function * Add an i18n entry for token_name_exists
unknwon
added
status: needs feedback
Tell me more about it
and removed
👋 good first issue
Good for newcomers
labels
Oct 15, 2019
This is claimed to be fixed by merging #5820, please help test on |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
Posting to the user token API (
/users/:username/tokens
) endpoint multiple times with the same required name creates multiple tokens.I would think this should throw a
HTTP/1.1 422 Unprocessable Entity
error like the repos do{"message":"repository already exists [uname: builder, name: builder]","url":"https://github.com/gogs/docs-api"}
The text was updated successfully, but these errors were encountered: