- Introduced Caddy server for serving frontend and API backend. - Implemented admin dashboard for creating, editing, and managing events. - Replaced session-based authentication with token-based OAuth using Gitea. - Added support for drag-and-drop event reordering in the admin interface. - Standardized Fastify route validation with JSON schemas. - Enhanced authentication flow with cookie-based state and secure token storage. - Reworked backend routes to handle publishing, event management, and content updates. - Updated `Dockerfile.caddy` and `fly.toml` for deployment configuration.
30 lines
841 B
Plaintext
30 lines
841 B
Plaintext
---
|
|
const title = 'Anmeldung wird abgeschlossen...';
|
|
---
|
|
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>{title}</title>
|
|
</head>
|
|
<body>
|
|
<p>{title}</p>
|
|
<script>
|
|
(function(){
|
|
try {
|
|
const params = new URLSearchParams(window.location.search);
|
|
const token = params.get('token');
|
|
if (token) {
|
|
const secure = window.location.protocol === 'https:';
|
|
document.cookie = `token=${encodeURIComponent(token)}; Path=/; Max-Age=${60*60*24}; SameSite=Lax; ${secure ? 'Secure' : ''}`.trim();
|
|
}
|
|
} catch(e) {
|
|
console.error('Failed to process OAuth token', e);
|
|
}
|
|
window.location.replace('/admin');
|
|
})();
|
|
</script>
|
|
</body>
|
|
</html>
|