mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-26 00:29:18 +02:00
feat: mandatory auto-generated passwords for share links + admin password copy/regeneration + password gate rate limiting
This commit is contained in:
@@ -29,7 +29,12 @@ extract($vars);
|
||||
$pageTitle = 'Accès';
|
||||
$isAdmin = true;
|
||||
$bodyClass = 'admin-body';
|
||||
$extraJs = ['/assets/js/app/clipboard.js'];
|
||||
$extraJs = ['/assets/js/app/clipboard.js', '/assets/js/app/acces-password.js'];
|
||||
|
||||
// Flash data for newly created/updated links (password display in modals)
|
||||
$newLinkSlug = $_SESSION['_flash_new_link_slug'] ?? null;
|
||||
$newLinkPassword = $_SESSION['_flash_new_link_password'] ?? null;
|
||||
unset($_SESSION['_flash_new_link_slug'], $_SESSION['_flash_new_link_password']);
|
||||
|
||||
require_once APP_ROOT . '/templates/head.php';
|
||||
echo '<link rel="stylesheet" href="/assets/css/file-access.css">';
|
||||
|
||||
Reference in New Issue
Block a user