mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-08-10 15:21:22 +02:00
fix: password-protected share links never load form after password entry
The main GET handler in partage/index.php always showed the password gate for links with password_hash set, even after successful verification. The session flag share_verified_<slug> was being set by requirePasswordGate() but never checked when deciding whether to re-show the gate. Added a check: if the session flag is already set, skip the gate and render the form directly. Also added error_log() calls throughout the password flow to help diagnose future issues.
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
# XAMXAM TODO
|
||||
|
||||
## Fix password-protected share links — form never loads after password entry
|
||||
- [x] `partage/index.php` — main GET handler: check `$_SESSION['share_verified_' . $slug]` before showing password gate; skip to form if already verified
|
||||
- [x] `partage/index.php` — add `error_log()` calls throughout password flow (gate entry, hash state, verification result, session check) for debugging
|
||||
|
||||
## Merge apropos editables into À propos page + remove charte + source code URL
|
||||
- [x] `actions/apropos.php` — only `contacts`; removed credits, erg_url
|
||||
- [x] `actions/page.php` — remove `charte` from allowed slugs
|
||||
|
||||
Reference in New Issue
Block a user