Update login methods in package docs (#20561)

This commit is contained in:
KN4CK3R 2022-07-31 15:41:25 +02:00 committed by GitHub
parent 0b12abcfb5
commit 66b623c2aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 11 additions and 5 deletions

View file

@ -60,6 +60,8 @@ curl --user your_username:your_password_or_token \
https://gitea.example.com/api/packages/testuser/composer?version=1.0.3
```
If you are using 2FA or OAuth use a [personal access token]({{< relref "doc/developers/api-usage.en-us.md#authentication" >}}) instead of the password.
The server responds with the following HTTP Status codes.
| HTTP Status Code | Meaning |