ui: add usage instructions for PAT (#7194)

Co-authored-by: Joe Chen <jc@unknwon.io>
pull/7200/head
LJea 2022-10-22 21:07:52 +09:00 committed by GitHub
parent ce25881c88
commit fd5874b07b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 5 deletions

View File

@ -370,6 +370,7 @@ two_factor_disable_success = Two-factor authentication has disabled successfully
manage_access_token = Manage Personal Access Tokens
generate_new_token = Generate New Token
tokens_desc = Tokens you have generated that can be used to access the Gogs APIs.
access_token_tips=The username you log into the Git app with is your personal access token. You can log in with an empty password or "x-access-token" as the password.
new_token_desc = Each token will have full access to your account.
token_name = Token Name
generate_token = Generate Token

View File

@ -23,7 +23,8 @@
{{if .TwoFactor}}
<br>
<p>{{.i18n.Tr "settings.two_factor_view_recovery_codes" AppSubURL "/user/settings/security/two_factor_recovery_codes" | Safe}}</p>
<p>{{.i18n.Tr "settings.two_factor_http" AppSubURL "/user/settings/applications" "https://{token}@try.gogs.io/user/repo.git" | Safe}}</p>
<p>{{.i18n.Tr "settings.two_factor_http" AppSubURL "/user/settings/applications" "https://{token}:x-access-token@try.gogs.io/user/repo.git" | Safe}}</p>
<p>{{.i18n.Tr "settings.access_token_tips"}}</p>
{{end}}
</div>
</div>