aboutsummaryrefslogtreecommitdiff
path: root/templates/user/settings
diff options
context:
space:
mode:
authorLJea <cnljea@outlook.com>2022-10-22 21:07:52 +0900
committerGitHub <noreply@github.com>2022-10-22 20:07:52 +0800
commitfd5874b07b73687f90e8cb7b171b67457364ebe9 (patch)
tree004f973c12244b8ddd7146448198a27311f0b9d4 /templates/user/settings
parentce25881c880d9711f211be05f92a809304a436e3 (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.tmpl5
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" .}}