- added working upload formm which can also create an upload
    - cleaned up auth.go
    - enhanced server/SetupAuthStore() to also look up form ids
    - added form template (put into .go file by Makefile
This commit is contained in:
2023-03-27 13:26:31 +02:00
parent 07bb5569a7
commit 9c7db0e2a4
10 changed files with 190 additions and 27 deletions

View File

@@ -29,7 +29,7 @@ VERSION := $(if $(filter $(BRANCH), development),$(version)-$(BRANCH)-$(COMMIT)
HAVE_POD := $(shell pod2text -h 2>/dev/null)
DAEMON := cenod
all: buildlocal buildlocalctl
all: cmd/formtemplate.go buildlocal buildlocalctl
buildlocalctl:
make -C upctl
@@ -80,3 +80,10 @@ show-versions: buildlocal
goupdate:
go get -t -u=patch ./...
cmd/%.go: templates/%.tpl
echo "package cmd" > cmd/$*.go
echo >> cmd/$*.go
echo "const formtemplate = \`" >> cmd/$*.go
cat templates/$*.tpl >> cmd/$*.go
echo "\`" >> cmd/$*.go