From fd5874b07b73687f90e8cb7b171b67457364ebe9 Mon Sep 17 00:00:00 2001 From: LJea Date: Sat, 22 Oct 2022 21:07:52 +0900 Subject: ui: add usage instructions for PAT (#7194) Co-authored-by: Joe Chen --- templates/user/settings/security.tmpl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'templates/user/settings') 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}}

{{.i18n.Tr "settings.two_factor_view_recovery_codes" AppSubURL "/user/settings/security/two_factor_recovery_codes" | Safe}}

-

{{.i18n.Tr "settings.two_factor_http" AppSubURL "/user/settings/applications" "https://{token}@try.gogs.io/user/repo.git" | Safe}}

+

{{.i18n.Tr "settings.two_factor_http" AppSubURL "/user/settings/applications" "https://{token}:x-access-token@try.gogs.io/user/repo.git" | Safe}}

+

{{.i18n.Tr "settings.access_token_tips"}}

{{end}} @@ -49,4 +50,4 @@ -{{template "base/footer" .}} \ No newline at end of file +{{template "base/footer" .}} -- cgit v1.2.3