diff options
author | LJea <cnljea@outlook.com> | 2022-10-22 21:07:52 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-22 20:07:52 +0800 |
commit | fd5874b07b73687f90e8cb7b171b67457364ebe9 (patch) | |
tree | 004f973c12244b8ddd7146448198a27311f0b9d4 /templates/user/settings | |
parent | ce25881c880d9711f211be05f92a809304a436e3 (diff) |
ui: add usage instructions for PAT (#7194)
Co-authored-by: Joe Chen <jc@unknwon.io>
Diffstat (limited to 'templates/user/settings')
-rw-r--r-- | templates/user/settings/security.tmpl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/user/settings/security.tmpl b/templates/user/settings/security.tmpl index f779b058..d14ed315 100644 --- a/templates/user/settings/security.tmpl +++ b/templates/user/settings/security.tmpl @@ -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> @@ -49,4 +50,4 @@ </div> </div> </div> -{{template "base/footer" .}}
\ No newline at end of file +{{template "base/footer" .}} |