feat(ui): Benutzer mit Rollen, Anmeldung mit Passwort, erste Einrichtung (#1062)

Argon2id, Standard-Admin mit Einmalpasswort in Datei, eigener Admin bei der
ersten Einrichtung, Rollen admin und nutzer, Benutzerverwaltung, Mein Konto,
nexus user. Die Anmeldung mit API-Key an der Oberfläche entfällt.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GmHhg3osejhFSpUz472iQ1
This commit is contained in:
2026-11-16 13:59:01 +01:00
parent e1c53aaee4
commit 993172d03e
26 changed files with 1684 additions and 137 deletions

View File

@ -16,6 +16,9 @@ pub struct AppState {
pub started: Instant,
/// Sitzungen der Weboberfläche (nur im Speicher; ein Neustart meldet ab).
pub sessions: Mutex<HashMap<String, Session>>,
/// Datei mit dem Einmalpasswort des Standard-Admins; sie wird nach der
/// ersten Einrichtung gelöscht.
pub bootstrap_file: std::sync::OnceLock<std::path::PathBuf>,
}
impl AppState {
@ -32,6 +35,7 @@ impl AppState {
http,
started: Instant::now(),
sessions: Mutex::new(HashMap::new()),
bootstrap_file: std::sync::OnceLock::new(),
})
}