From: Paul Hänsch Date: Thu, 10 Mar 2022 16:29:11 +0000 (+0100) Subject: macro and templates for login and registration page X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=6c8a69b3a84e68dd86f16ec23913c3d2c77d0755;p=shellwiki macro and templates for login and registration page --- diff --git a/macros/wikiform b/macros/wikiform new file mode 100755 index 0000000..37d3996 --- /dev/null +++ b/macros/wikiform @@ -0,0 +1,16 @@ +#!/bin/sh + +action="$1" + +. "$_EXEC/cgilite/cgilite.sh" +set -- nocookie +. "$_EXEC/cgilite/users.sh" + +case $action in + login) + w_user_login |"$_EXEC/cgilite/html-sh.sed" + ;; + register) + w_user_register |"$_EXEC/cgilite/html-sh.sed" + ;; +esac diff --git a/pages/[404]/#page.md b/pages/[wiki]/404/#page.md similarity index 100% rename from pages/[404]/#page.md rename to pages/[wiki]/404/#page.md diff --git a/pages/[wiki]/login/#page.md b/pages/[wiki]/login/#page.md new file mode 100644 index 0000000..2e4f544 --- /dev/null +++ b/pages/[wiki]/login/#page.md @@ -0,0 +1,4 @@ +Login +----- +<> +[Account registration]([register] "Sign up for a new user account") diff --git a/pages/[wiki]/register/#page.md b/pages/[wiki]/register/#page.md new file mode 100644 index 0000000..d6ba4e4 --- /dev/null +++ b/pages/[wiki]/register/#page.md @@ -0,0 +1,3 @@ +Set up an account +----------------- +<>