From 331001091a09d677dc94fc0a56d7d040a1b520a6 Mon Sep 17 00:00:00 2001 From: Jackz Date: Tue, 15 Apr 2025 19:08:28 -0500 Subject: [PATCH] add login form --- server/config/general.toml | 12 +++++ server/templates/auth/login.html.hbs | 57 +++++++++++++++++++++++ server/templates/layouts/default.html.hbs | 20 ++++++++ 3 files changed, 89 insertions(+) create mode 100644 server/config/general.toml create mode 100644 server/templates/auth/login.html.hbs create mode 100644 server/templates/layouts/default.html.hbs diff --git a/server/config/general.toml b/server/config/general.toml new file mode 100644 index 0000000..53c2032 --- /dev/null +++ b/server/config/general.toml @@ -0,0 +1,12 @@ +[general] +listen_ip = "0.0.0.0" +listen_port = 80 + +[backends.local] +path = "/var/tmp/test" + +[auth] +enable_registration = true + +[smtp] +# TODO: diff --git a/server/templates/auth/login.html.hbs b/server/templates/auth/login.html.hbs new file mode 100644 index 0000000..b2f9f39 --- /dev/null +++ b/server/templates/auth/login.html.hbs @@ -0,0 +1,57 @@ +{{#> layouts/default body-class="has-background-white-ter login-bg" }} +

+
+

storage-app

+
+

Login

+
+
+ +
+ + + + +
+ {{!--

This username is available

--}} +
+
+ +
+ + + + +
+ {{!--

This username is available

--}} +
+
+
+ +
+
+
+
+ + {{#if sso_enabled}} + Login with SSO + {{/if}} +
+
+
+ Forgot password? +
+
+
+ +
+
+
+
+
+{{/layouts/default}} \ No newline at end of file diff --git a/server/templates/layouts/default.html.hbs b/server/templates/layouts/default.html.hbs new file mode 100644 index 0000000..45a8500 --- /dev/null +++ b/server/templates/layouts/default.html.hbs @@ -0,0 +1,20 @@ + + + + + + + + storage-app + + + + + + + + + + {{> @partial-block }} + +