diff options
author | Giteabot <teabot@gitea.io> | 2023-07-25 21:30:50 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-26 01:30:50 +0000 |
commit | 43213b816d4cc4de9dd46a7b667925516e305443 (patch) | |
tree | c62f49a2c17b62ac4cebdbda734852dd58420337 /docs/content/doc/administration/cmd-embedded.en-us.md | |
parent | a55924aaf48de3ae9c32e1910c62c2b7f6e4f0ad (diff) | |
download | gitea-43213b816d4cc4de9dd46a7b667925516e305443.tar.gz gitea-43213b816d4cc4de9dd46a7b667925516e305443.zip |
Fix CLI allowing creation of access tokens with existing name (#26071) (#26144)
Backport #26071 by @yardenshoham
We are now:
- Making sure there is no existing access token with the same name
- Making sure the given scopes are valid (we already did this before but
now we have a message)
The logic is mostly taken from
https://github.com/go-gitea/gitea/blob/a12a5f3652c339b17b187ff424a480631a3c1e1e/routers/api/v1/user/app.go#L101-L123
Closes #26044
Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Diffstat (limited to 'docs/content/doc/administration/cmd-embedded.en-us.md')
0 files changed, 0 insertions, 0 deletions