Add login/logout to Momentry Studio sidebar with default demo/demo123

- Added login/logout buttons to left sidebar bottom
- Shows current user name when logged in
- Login modal with username/password fields
- Default credentials: demo/demo123
- auth_login Tauri command using SqliteProvider
This commit is contained in:
Warren
2026-06-30 08:15:57 +08:00
parent dfe464303d
commit b9bea0db23
5 changed files with 186 additions and 4 deletions
+17
View File
@@ -3570,6 +3570,7 @@ dependencies = [
"tokio-postgres",
"tokio-util",
"toml 0.8.23",
"tower-http",
"tracing",
"tracing-subscriber",
"ureq",
@@ -7120,6 +7121,22 @@ dependencies = [
"tracing",
]
[[package]]
name = "tower-http"
version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1e9cd434a998747dd2c4276bc96ee2e0c7a2eadf3cae88e52be55a05fa9053f5"
dependencies = [
"bitflags 2.13.0",
"bytes",
"http 1.4.2",
"http-body 1.0.1",
"http-body-util",
"pin-project-lite",
"tower-layer",
"tower-service",
]
[[package]]
name = "tower-layer"
version = "0.3.3"