diff options
author | Jonas Franz <info@jonasfranz.software> | 2019-03-09 17:29:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-09 17:29:58 +0100 |
commit | 8fffb0616866cfe7a293b457d8703724666374cb (patch) | |
tree | 08e286ed4aeff36079b81eac5e58be4e5e789720 /templates | |
parent | 8211e01d9e6f283077c5692b62d7ea81e0a60f9e (diff) | |
download | gitea-8fffb0616866cfe7a293b457d8703724666374cb.tar.gz gitea-8fffb0616866cfe7a293b457d8703724666374cb.zip |
Add regenerate secret feature for oauth2 (#6291)
* Add regenerate secret functionality
* Fix lint
Diffstat (limited to 'templates')
-rw-r--r-- | templates/user/settings/applications_oauth2_edit.tmpl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/user/settings/applications_oauth2_edit.tmpl b/templates/user/settings/applications_oauth2_edit.tmpl index 5de179ecaf..d1b0beb60a 100644 --- a/templates/user/settings/applications_oauth2_edit.tmpl +++ b/templates/user/settings/applications_oauth2_edit.tmpl @@ -30,7 +30,10 @@ <div class="item"> <!-- TODO add regenerate secret functionality */ --> {{.i18n.Tr "settings.oauth2_regenerate_secret_hint"}} - <a onclick="alert('Not yet implemented.')">{{.i18n.Tr "settings.oauth2_regenerate_secret"}}</a> + <form class="ui form ignore-dirty" action="{{$.AppSubURL}}/user/settings/applications/oauth2/{{.App.ID}}/regenerate_secret" method="post"> + {{.CsrfTokenHtml}} + <a href="#" onclick="event.target.parentNode.submit()">{{.i18n.Tr "settings.oauth2_regenerate_secret"}}</a> + </form> </div> </div> <div class="ui attached bottom segment"> |