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:
@ -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(),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user