]> source.dussan.org Git - gitea.git/commit
Fix incorrect `/tokens` api (#32085) (#32092)
authorGiteabot <teabot@gitea.io>
Sun, 22 Sep 2024 18:02:09 +0000 (02:02 +0800)
committerGitHub <noreply@github.com>
Sun, 22 Sep 2024 18:02:09 +0000 (18:02 +0000)
commit919b82461aa3bf9581f6e9e95ddc1ed16c17290b
tree4d473a6fe15cb76ab16091202776da09863ab1aa
parent69ba37e9fd2bd65522648df611ce5257580db20f
Fix incorrect `/tokens` api (#32085) (#32092)

Backport #32085 by @KN4CK3R

Fixes #32078

- Add missing scopes output.
- Disallow empty scope.

Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
routers/api/v1/user/app.go
tests/integration/api_token_test.go