From ee61b3489c1b91870bed26e2d502759259398873 Mon Sep 17 00:00:00 2001 From: xavix-yo Date: Fri, 24 Jul 2026 23:48:58 +0100 Subject: [PATCH] mobile: show login screen for stock browsers when not authenticated Add an inline auth gate to mobile.html that checks /api/auth/me on load. Skipped when ?native=true (the iOS shell handles auth in background). Includes a vanilla JS login form (no Lit) reusing the existing login styles. Bump version to 0.1.2. --- Cargo.lock | 2 +- Cargo.toml | 2 +- web/mobile.html | 77 ++++++++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 78 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 56aefb5..94c2c4d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4172,7 +4172,7 @@ checksum = "8ee5873ec9cce0195efcb7a4e9507a04cd49aec9c83d0389df45b1ef7ba2e649" [[package]] name = "skald" -version = "0.1.1" +version = "0.1.2" dependencies = [ "anyhow", "async-trait", diff --git a/Cargo.toml b/Cargo.toml index f9a96d1..7ed15b8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,7 +24,7 @@ resolver = "2" [package] name = "skald" -version = "0.1.1" +version = "0.1.2" edition = "2024" [features] diff --git a/web/mobile.html b/web/mobile.html index 3f71d1f..cb46bb7 100644 --- a/web/mobile.html +++ b/web/mobile.html @@ -41,6 +41,7 @@ + @@ -65,7 +66,81 @@ - + + + + + + +