Full Changelog: v1.2.0...v1.2.1
Changes 4/19/2025
-
Extended “Remember Me” cookie behavior
InAuthController::finalizeLogin(), after settingremember_me_tokenre‑issued the PHP session cookie with the same 30‑day expiry and calledsession_regenerate_id(true). -
Fetch URL fixes
Changed all front‑endfetch("api/…")calls to absolute pathsfetch("/api/…")to avoid relative‑path 404/403 issues. -
CSRF token refresh
UpdatedsubmitLogin()and both TOTP submission handlers toasync/awaita fresh CSRF token from/api/auth/token.php(withcredentials: "include") immediately before any POST. -
submitLogin() overhaul
Refactored to:- Fetch CSRF
- POST credentials to
/api/auth/auth.php - On
totp_required, re‑fetch CSRF again before callingopenTOTPLoginModal() - Handle full logins vs. TOTP flows cleanly.
-
TOTP handlers update
In both the “Confirm TOTP” button flow and the auto‑submit on 6‑digit input:- Refreshed CSRF token before every
/api/totp_verify.phpcall - Checked
response.okbefore parsing JSON - Improved
.catcherror handling
- Refreshed CSRF token before every
-
verifyTOTP() endpoint enhancement
Inside the pending‑login branch ofverifyTOTP():- Pulled
$_SESSION['pending_login_remember_me'] - If true, wrote the persistent token store, set
remember_me_token, re‑issued the session cookie, and regenerated the session ID - Cleaned up pending session variables
- Pulled
Changes 4/18/2025
fileListView.js
- Seed and persist
itemsPerPagefromlocalStorage - Use
window.itemsPerPagefor pagination in gallery - Enable search input filtering in gallery mode
- Always re‑render the view‑toggle button on gallery load
- Restore per‑card action buttons (download, edit, rename, share)
- Assign real
valueto checkboxes and callupdateFileActionButtons()on change - Update
changePageandchangeItemsPerPageto respectviewMode
fileTags.js
- Import
renderFileTableandrenderGalleryView - Re‑render the list after saving a single‑file tag
- Re‑render the list after saving multi‑file tags
Changes 4/17/2025
- Generate OpenAPI spec and API HTML docs
- Fully auto‑generated OpenAPI spec (
openapi.json) and interactive HTML docs (api.html) powered by Redoc.
- Fully auto‑generated OpenAPI spec (
- .gitattributes added to mark (
openapi.json) & (api.html) as documentation. - User Panel added API Docs link.
- Adjusted remember_me_token.
- Test pipeline