aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-07-29 17:10:50 -0400
committerPaul Duncan <pabs@pablotron.org>2016-07-29 17:10:50 -0400
commit0c2d54c6159cf4b9e4c93e43c18ad4d08bf54faf (patch)
tree743a1f36336db69c2e95fc9d02e7a5e26fe2f963 /src
parent80c76ca5320ca3b45ed6bf4a2d4530c6dad59c3c (diff)
downloadguff-0c2d54c6159cf4b9e4c93e43c18ad4d08bf54faf.tar.bz2
guff-0c2d54c6159cf4b9e4c93e43c18ad4d08bf54faf.zip
enable generate secret button and add gripe()
Diffstat (limited to 'src')
-rw-r--r--src/guff/apis.cr4
-rw-r--r--src/views/dialogs/admin/project-edit.ecr2
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.'
>