mirror of https://github.com/go-gitea/gitea
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
a12a5f3652/routers/api/v1/user/app.go (L101-L123)
Closes #26044
Signed-off-by: Yarden Shoham <git@yardenshoham.com>
pull/26052/head^2
parent
a55924aaf4
commit
43213b816d
Loading…
Reference in new issue