diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-06-15 09:12:50 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-15 01:12:50 +0000 |
commit | 73ae71824d64aa242451f54af5df7e8f8bfcf579 (patch) | |
tree | c6b552be5f6b8b3bf3732415181b68df9ddf69f0 /templates/admin/auth/edit.tmpl | |
parent | 39a15623f6902b476cd6f8ea36992eecea62d410 (diff) | |
download | gitea-73ae71824d64aa242451f54af5df7e8f8bfcf579.tar.gz gitea-73ae71824d64aa242451f54af5df7e8f8bfcf579.zip |
Show OAuth2 errors to end users (#25261)
Partially fix #23936
![image](https://github.com/go-gitea/gitea/assets/2114189/8aa7f3ad-a5f0-42ce-a478-289a03bd08a3)
![image](https://github.com/go-gitea/gitea/assets/2114189/bb901e7d-485a-47a5-b68d-9ebe7013a6b2)
![image](https://github.com/go-gitea/gitea/assets/2114189/9a1ce0f3-f011-4baf-8e2f-cc6304bc9703)
Diffstat (limited to 'templates/admin/auth/edit.tmpl')
-rw-r--r-- | templates/admin/auth/edit.tmpl | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/templates/admin/auth/edit.tmpl b/templates/admin/auth/edit.tmpl index 829e60f239..801cf9e7b4 100644 --- a/templates/admin/auth/edit.tmpl +++ b/templates/admin/auth/edit.tmpl @@ -14,8 +14,8 @@ <span>{{.Source.TypeName}}</span> </div> <div class="required inline field {{if .Err_Name}}error{{end}}"> - <label for="name">{{.locale.Tr "admin.auths.auth_name"}}</label> - <input id="name" name="name" value="{{.Source.Name}}" autofocus required> + <label for="auth_name">{{.locale.Tr "admin.auths.auth_name"}}</label> + <input id="auth_name" name="name" value="{{.Source.Name}}" autofocus required> </div> <!-- LDAP and DLDAP --> @@ -434,6 +434,17 @@ </div> </form> </div> + + <h4 class="ui top attached header"> + {{.locale.Tr "admin.auths.tips"}} + </h4> + <div class="ui attached segment"> + <h5>GMail Settings:</h5> + <p>Host: smtp.gmail.com, Port: 587, Enable TLS Encryption: true</p> + + <h5 class="oauth2">{{.locale.Tr "admin.auths.tips.oauth2.general"}}:</h5> + <p class="oauth2">{{.locale.Tr "admin.auths.tips.oauth2.general.tip"}} <b id="oauth2-callback-url"></b></p> + </div> </div> <div class="ui g-modal-confirm delete modal"> |