]> git.plutz.net Git - shellwiki/commitdiff
macro and templates for login and registration page
authorPaul Hänsch <paul@plutz.net>
Thu, 10 Mar 2022 16:29:11 +0000 (17:29 +0100)
committerPaul Hänsch <paul@plutz.net>
Thu, 10 Mar 2022 16:29:11 +0000 (17:29 +0100)
macros/wikiform [new file with mode: 0755]
pages/[wiki]/404/#page.md [moved from pages/[404]/#page.md with 100% similarity]
pages/[wiki]/login/#page.md [new file with mode: 0644]
pages/[wiki]/register/#page.md [new file with mode: 0644]

diff --git a/macros/wikiform b/macros/wikiform
new file mode 100755 (executable)
index 0000000..37d3996
--- /dev/null
@@ -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/[wiki]/login/#page.md b/pages/[wiki]/login/#page.md
new file mode 100644 (file)
index 0000000..2e4f544
--- /dev/null
@@ -0,0 +1,4 @@
+Login
+-----
+<<wikiform 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 (file)
index 0000000..d6ba4e4
--- /dev/null
@@ -0,0 +1,3 @@
+Set up an account
+-----------------
+<<wikiform register>>