Weboberfläche (erste Version) mit Anmeldung per Passwort zum Testen
- SPA unter /omega/ ohne Bibliotheken; HTML, CSS, JS und IBM-Plex-Schriften eingebettet, Content-Security-Policy nur für den Proxy selbst - Browser auf / werden nach /omega/ umgeleitet, Ollama-Clients nicht - Anmeldung mit Passwort (Argon2) nur mit ui.password_login; Sitzung im HttpOnly-Cookie (SameSite=Strict), Änderungen nur mit X-Omega-CSRF - Seiten nach den Mockups: Übersicht, API-Keys mit Aufzeichnung, Konto, Gruppen & Kontingente, Sparks & Modelle, Zeitplan, Benutzer, Audit-Log, öffentliches Dashboard - tests/multispark/demo.sh (admin, dozent, student; Passwort 1234), ui_test.py Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2c66f7fd0d
commit
7aeb6f9d44
25 files changed
+1581
-6
No files matched your search
@@ -817,6 +817,9 @@ fn has_column(conn: &Connection, table: &str, column: &str) -> Result<bool> {
|
||||
|
||||
/// Ältere Datenbanken auf den aktuellen Stand bringen
|
||||
fn migrate(conn: &Connection) -> Result<()> {
|
||||
if !has_column(conn, "users", "password_hash")? {
|
||||
conn.execute("ALTER TABLE users ADD COLUMN password_hash TEXT", [])?;
|
||||
}
|
||||
if !has_column(conn, "api_keys", "is_super")? {
|
||||
conn.execute("ALTER TABLE api_keys ADD COLUMN is_super INTEGER NOT NULL DEFAULT 0", [])?;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user