diff options
Diffstat (limited to 'src/frontend/login.rs')
-rw-r--r-- | src/frontend/login.rs | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/src/frontend/login.rs b/src/frontend/login.rs index 35ce3db..9665ce7 100644 --- a/src/frontend/login.rs +++ b/src/frontend/login.rs @@ -9,24 +9,7 @@ use std::str::FromStr; use crate::frontend::templates::Template; use crate::frontend::{FrontendError, IndiewebEndpoints}; use crate::{database::Storage, ApplicationState}; - -markup::define! { - LoginPage { - form[method="POST"] { - h1 { "Sign in with your website" } - p { - "Signing in to Kittybox might allow you to view private content " - "intended for your eyes only." - } - - section { - label[for="url"] { "Your website URL" } - input[id="url", name="url", placeholder="https://example.com/"]; - input[type="submit"]; - } - } - } -} +use kittybox_templates::LoginPage; pub async fn form<S: Storage>(req: Request<ApplicationState<S>>) -> Result { let owner = req.url().origin().ascii_serialization() + "/"; |