diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/guff/apis.cr | 4 | ||||
-rw-r--r-- | src/views/dialogs/admin/project-edit.ecr | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/guff/apis.cr b/src/guff/apis.cr index c801158..874f354 100644 --- a/src/guff/apis.cr +++ b/src/guff/apis.cr @@ -101,6 +101,10 @@ module Guff::APIs r end end + + def do_project_generate_secret(params : HTTP::Params) + { secret: SecureRandom.base64(24) } + end end module BlogAPI diff --git a/src/views/dialogs/admin/project-edit.ecr b/src/views/dialogs/admin/project-edit.ecr index 5f628d2..42622f2 100644 --- a/src/views/dialogs/admin/project-edit.ecr +++ b/src/views/dialogs/admin/project-edit.ecr @@ -227,7 +227,7 @@ <a href='#' - id='project-edit-secret-generate' + id='project-edit-generate-secret' class='btn btn-default input-group-addon' title='Generate new Webhook Secret.' > |