0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-24 15:02:52 +01:00
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.
This commit is contained in:
Barbossa 2018-06-06 22:02:37 +08:00 committed by Lunny Xiao
parent fa3ceb610d
commit 83d956ce6b

View file

@ -191,7 +191,7 @@
</div> </div>
<div class="oauth2_use_custom_url_field oauth2_auth_url required field"> <div class="oauth2_use_custom_url_field oauth2_auth_url required field">
<label for="oauth2_auth_url">{{.i18n.Tr "admin.auths.oauth2_authURL"}}</label> <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>
<div class="oauth2_use_custom_url_field oauth2_token_url required field"> <div class="oauth2_use_custom_url_field oauth2_token_url required field">
<label for="oauth2_token_url">{{.i18n.Tr "admin.auths.oauth2_tokenURL"}}</label> <label for="oauth2_token_url">{{.i18n.Tr "admin.auths.oauth2_tokenURL"}}</label>