forked from kevadesu/forgejo
Add regenerate secret feature for oauth2 (#6291)
* Add regenerate secret functionality * Fix lint
This commit is contained in:
parent
8211e01d9e
commit
8fffb06168
3 changed files with 33 additions and 1 deletions
|
@ -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">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue