From 0c2d54c6159cf4b9e4c93e43c18ad4d08bf54faf Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Fri, 29 Jul 2016 17:10:50 -0400 Subject: enable generate secret button and add gripe() --- src/guff/apis.cr | 4 ++++ src/views/dialogs/admin/project-edit.ecr | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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 @@ -- cgit v1.2.3