summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorBarbossa <qianlei90@gmail.com>2018-06-06 22:02:37 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2018-06-06 22:02:37 +0800
commit83d956ce6b22bb066607c3a2da2e265b7b034e6f (patch)
treef3bf94fea5874ed2c5ca3af2655d80a3d7360267 /templates
parentfa3ceb610d579c64142321ad4c82398a9d0bfde0 (diff)
downloadgitea-83d956ce6b22bb066607c3a2da2e265b7b034e6f.tar.gz
gitea-83d956ce6b22bb066607c3a2da2e265b7b034e6f.zip
Fix typo (#4151)
Fix incorrect tmpl in oauth when we have a custom authorize url. The tmpl will append an additional character "v" every time we save the settings.
Diffstat (limited to 'templates')
-rw-r--r--templates/admin/auth/edit.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/admin/auth/edit.tmpl b/templates/admin/auth/edit.tmpl
index 39d1f9a708..5c492ff521 100644
--- a/templates/admin/auth/edit.tmpl
+++ b/templates/admin/auth/edit.tmpl
@@ -191,7 +191,7 @@
</div>
<div class="oauth2_use_custom_url_field oauth2_auth_url required field">
<label for="oauth2_auth_url">{{.i18n.Tr "admin.auths.oauth2_authURL"}}</label>
- <input id="oauth2_auth_url" name="oauth2_auth_url" value="{{if $cfg.CustomURLMapping}}{{$cfg.CustomURLMapping.AuthURL}}v{{end}}">
+ <input id="oauth2_auth_url" name="oauth2_auth_url" value="{{if $cfg.CustomURLMapping}}{{$cfg.CustomURLMapping.AuthURL}}{{end}}">
</div>
<div class="oauth2_use_custom_url_field oauth2_token_url required field">
<label for="oauth2_token_url">{{.i18n.Tr "admin.auths.oauth2_tokenURL"}}</label>