91 lines
4.1 KiB
Plaintext
91 lines
4.1 KiB
Plaintext
<!DOCTYPE html>
|
|
<head>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Forgot password?</title>
|
|
<link id="favicon" rel="icon" type="<%= (branding && branding.faviconMimeType) ? branding.faviconMimeType : 'image/webp' %>" sizes="<%= (branding && branding.faviconMimeType === 'image/svg+xml') ? 'any' : '16x16' %>" href="<%= (branding && branding.faviconUrl) ? branding.faviconUrl : (branding && branding.logoUrl ? branding.logoUrl : '/images/adpanel-dark.svg') %>" />
|
|
<link rel="alternate icon" type="<%= (branding && branding.faviconMimeType) ? branding.faviconMimeType : 'image/webp' %>" href="<%= (branding && branding.faviconUrl) ? branding.faviconUrl : (branding && branding.logoUrl ? branding.logoUrl : '/images/adpanel-dark.svg') %>" />
|
|
<style nonce="<%= cspNonce %>">
|
|
strong {
|
|
background-color: gray;
|
|
color: white;
|
|
}
|
|
</style>
|
|
<script nonce="<%= cspNonce %>">
|
|
(function () {
|
|
const CHRISTMAS_IMG = '/auth-assets/christmas-logo';
|
|
function isChristmasPeriod() {
|
|
const now = new Date();
|
|
const month = now.getMonth();
|
|
const day = now.getDate();
|
|
return month === 11 && day >= 25 && day <= 28;
|
|
}
|
|
function applyChristmasTheme() {
|
|
if (!isChristmasPeriod()) return;
|
|
const favicon = document.getElementById('favicon') || document.querySelector('link[rel="icon"]');
|
|
if (favicon) favicon.href = CHRISTMAS_IMG;
|
|
document.querySelectorAll('img').forEach(img => {
|
|
// adpanel:login-dead-assets — the i.imgur.com legacy-CDN default-logo
|
|
// match was removed 2026-11 with the CDN-surface retirement: this
|
|
// page ships no <img> elements at all, so the loop stays a no-op
|
|
// guard. The ADPanel-owned default-logo match is the case-insensitive,
|
|
// basename-anchored test /(^|\/)adpanel-dark\.(svg|webp)(\?|$)/i,
|
|
// restored to life 2026-11 (kept term-consistent with
|
|
// views/login.ejs's swap): it would theme both shipped spellings of
|
|
// the default logo — the shipped remote-CDN .../adpanel-dark.svg
|
|
// logoUrl and the local /images/adpanel-dark.svg fallback — while an
|
|
// operator's custom upload would never be clobbered. The anchors are
|
|
// load-bearing: an unanchored substring match would also theme URLs
|
|
// that merely EMBED the default filename (e.g.
|
|
// .../logos/adpanel-dark.svg.png, or a proxy URL carrying the name as
|
|
// a query param), so any src whose basename is not exactly the
|
|
// ADPanel-owned default filename never matches. The old
|
|
// ADPanel-dark.webp-only includes() was dead against the shipped svg
|
|
// default.
|
|
if (img.src && /(^|\/)adpanel-dark\.(svg|webp)(\?|$)/i.test(img.src)) {
|
|
img.src = CHRISTMAS_IMG;
|
|
}
|
|
});
|
|
}
|
|
document.addEventListener('DOMContentLoaded', applyChristmasTheme);
|
|
})();
|
|
</script>
|
|
<style nonce="<%= cspNonce %>">
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
}
|
|
|
|
img,
|
|
video,
|
|
canvas {
|
|
-webkit-user-drag: none;
|
|
user-drag: none;
|
|
}
|
|
</style>
|
|
<script nonce="<%= cspNonce %>">
|
|
document.addEventListener('contextmenu', e => e.preventDefault());
|
|
document.addEventListener('dragstart', e => e.preventDefault());
|
|
document.addEventListener('selectstart', e => e.preventDefault());
|
|
document.addEventListener('copy', e => e.preventDefault());
|
|
document.addEventListener('cut', e => e.preventDefault());
|
|
document.addEventListener('keydown', e => {
|
|
if ((e.ctrlKey || e.metaKey) && ['c', 'C', 'a', 'A', 's', 'S', 'u', 'U'].includes(e.key)) e.preventDefault();
|
|
});
|
|
</script>
|
|
</head>
|
|
|
|
<body>
|
|
<html>
|
|
<p>
|
|
[Dashboard] Due to security reasons you can only reset your password
|
|
directly from the terminal using the command
|
|
<strong>bash initialize.sh</strong> from the <%= (branding && branding.appName) ? branding.appName : 'panel' %> directory or asking an admin to reset it for the specific user from Accounts settings category.
|
|
</p>
|
|
|
|
</html>
|
|
</body>
|