9b124deeea
- Rename project from decp.info to colibre across all codebase - Update domain from https://decp.info to https://colibre.fr - Update GitHub repo references to ColinMaudry/colibre - Rename deployment files: decpinfo-backup.* → colibre-backup.* - Update project configuration and documentation - Rename project assets: decp.info.png → colibre.png - Update environment variables and constants (DOMAIN_NAME, TOKEN_PREFIX, GITHUB_REPO, etc.) - Update URLs in all pages, tests, and configuration files - Keep DECP acronym in text (unchanged per requirements) - Add rebrand note to README.md Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
32 lines
954 B
Python
32 lines
954 B
Python
import dash_bootstrap_components as dbc
|
|
from dash import dcc, html, register_page
|
|
|
|
NAME = "Vérification email"
|
|
|
|
register_page(
|
|
__name__,
|
|
path="/verification-email",
|
|
title="Vérification email | colibre",
|
|
name=NAME,
|
|
description="Vérification de l'adresse email.",
|
|
)
|
|
|
|
|
|
def layout(error: str | None = None, token: str | None = None, **_):
|
|
if error == "invalid_token":
|
|
return dbc.Container(
|
|
className="py-4",
|
|
style={"maxWidth": "500px"},
|
|
children=[
|
|
html.H2("Lien invalide ou expiré"),
|
|
dbc.Alert(
|
|
"Le lien de vérification est invalide ou a expiré. "
|
|
"Connectez-vous pour demander un nouveau lien.",
|
|
color="danger",
|
|
),
|
|
dcc.Link("Aller à la connexion", href="/connexion"),
|
|
],
|
|
)
|
|
|
|
return dcc.Location(href="/connexion", id="verif-redirect")
|