feat: Login-as-User (Impersonate) + Default-Path pro User
Admin:
- POST /api/admin/users/{userId}/impersonate – erstellt Token für Zieluser
- Login-as-Button (fa-sign-in) in User-Liste (nicht für sich selbst)
- confirm-Dialog, danach location.reload() mit neuem User-Kontext
- Default-Path Feld + Browse-Button im Admin-Formular
Default-Path:
- Neues Feld default_path in users-Tabelle (TryAddColumn Migration)
- UserRecord.DefaultPath Property
- In allen Endpoints: Admin CRUD, Auth /me, Profile Get/Update
- Profil-Seite: Default-Path Feld + Browse-Button
- Session-Seite: Workspace-Browse nutzt defaultPath als Fallback
This commit is contained in:
1 parent
df68843e82
commit
d1355dcb0d
10 files changed
+144
-17
No files matched your search
@@ -397,6 +397,12 @@
|
||||
<input type="text" id="profileUsername" disabled>
|
||||
<label>Anzeigename</label>
|
||||
<input type="text" id="profileDisplayName" placeholder="Anzeigename">
|
||||
<label>Standard-Pfad</label>
|
||||
<span class="setting-hint">Wird als Basis-Pfad beim Auswählen eines Workspace in Sessions verwendet.</span>
|
||||
<div class="input-with-btn">
|
||||
<input type="text" id="profileDefaultPath" placeholder="z.B. /home/user/projects" autocomplete="off">
|
||||
<button type="button" id="profileDefaultPathBrowse" class="icon-btn"><i class="fa fa-folder"></i></button>
|
||||
</div>
|
||||
<label>Persona</label>
|
||||
<span class="setting-hint">Wird im System-Prompt verwendet, wenn der Agent "Kennt sein Gegenüber" aktiviert hat.</span>
|
||||
<textarea id="profilePersona" rows="8" placeholder="Beschreibe dich selbst – Name, Rolle, Präferenzen, Kommunikationsstil..."></textarea>
|
||||
@@ -448,6 +454,11 @@
|
||||
<input type="text" id="adminDisplayName" placeholder="Anzeigename (optional)" autocomplete="off">
|
||||
<label id="adminPasswordLabel">Passwort</label>
|
||||
<input type="password" id="adminPassword" placeholder="Passwort" autocomplete="new-password">
|
||||
<label>Standard-Pfad</label>
|
||||
<div class="input-with-btn">
|
||||
<input type="text" id="adminDefaultPath" placeholder="z.B. /home/user/projects" autocomplete="off">
|
||||
<button type="button" id="adminDefaultPathBrowse" class="icon-btn"><i class="fa fa-folder"></i></button>
|
||||
</div>
|
||||
<div class="admin-checkbox-row">
|
||||
<label class="toggle-label">
|
||||
<input type="checkbox" id="adminIsAdmin">
|
||||
|
||||
Reference in new issue
Block a user