app, server: Add an endpoint to fetch the frontend settings

This commit is contained in:
Valentin Tolmer
2025-03-30 23:08:42 +02:00
committed by nitnelave
parent ba93533790
commit 5afcdbda65
15 changed files with 86 additions and 30 deletions
+3 -1
View File
@@ -22,7 +22,6 @@ curve25519-dalek = "3"
digest = "0.9"
generic-array = "0.14"
rand = "0.8"
serde = "*"
sha2 = "0.9"
thiserror = "*"
@@ -43,6 +42,9 @@ workspace = true
features = ["macros"]
optional = true
[dependencies.serde]
workspace = true
# For WASM targets, use the JS getrandom.
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.getrandom]
version = "0.2"
+3 -1
View File
@@ -11,7 +11,6 @@ test = []
async-trait = "0.1"
base64 = "0.21"
ldap3_proto = "0.6.0"
serde = "1"
serde_bytes = "0.11"
[dev-dependencies]
@@ -36,6 +35,9 @@ path = "../domain"
[dependencies.lldap_domain_model]
path = "../domain-model"
[dependencies.serde]
workspace = true
[dependencies.uuid]
features = ["v1", "v3"]
version = "1"
+3 -1
View File
@@ -11,7 +11,6 @@ test = []
base64 = "0.21"
bincode = "1.3"
orion = "0.17"
serde = "1"
serde_bytes = "0.11"
thiserror = "1"
@@ -44,6 +43,9 @@ features = [
"runtime-actix-rustls",
]
[dependencies.serde]
workspace = true
[dependencies.uuid]
features = ["v1", "v3"]
version = "1"
+3 -1
View File
@@ -15,7 +15,6 @@ anyhow = "*"
base64 = "0.21"
bincode = "1.3"
juniper = "0.15"
serde = "*"
serde_bytes = "0.11"
[dev-dependencies]
@@ -49,6 +48,9 @@ features = [
"runtime-actix-rustls",
]
[dependencies.serde]
workspace = true
[dependencies.strum]
features = ["derive"]
version = "0.25"
+12
View File
@@ -0,0 +1,12 @@
[package]
authors = ["Valentin Tolmer <valentin@tolmer.fr"]
description = "Frontend options for LLDAP"
edition = "2024"
homepage = "https://github.com/lldap/lldap"
license = "GPL-3.0-only"
name = "lldap_frontend_options"
repository = "https://github.com/lldap/lldap"
version = "0.1.0"
[dependencies.serde]
workspace = true
+6
View File
@@ -0,0 +1,6 @@
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize)]
pub struct Options {
pub password_reset_enabled: bool,
}