bypass profile select

This commit is contained in:
Mateusz Gruszczyński
2026-05-25 10:15:04 +02:00
parent ff7d836b77
commit 2e2d747fa2
5 changed files with 13 additions and 3 deletions

View File

@@ -118,6 +118,10 @@ def active_profile(user_id: int | None = None):
if row:
return row
profiles = list_profiles(user_id)
# Note: Trusted auth-bypass access must choose a profile explicitly on first entry,
# instead of silently reusing the first configured profile.
if auth.auth_bypassed_request() and profiles:
return None
return profiles[0] if profiles else None

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -145,6 +145,10 @@
</select>
<div class="form-text">Changing rTorrent reloads the live torrent snapshot.</div>
</div>
<div class="modal-footer">
<button class="btn btn-sm btn-outline-secondary" data-bs-dismiss="modal" type="button">Cancel</button>
<button id="profilePickerUseBtn" class="btn btn-sm btn-primary" type="button"><i class="fa-solid fa-plug-circle-check"></i> Use selected</button>
</div>
</div>
</div>
</div>