feat(abonnement): linkedin_button paramétrable par next, inscription vers mes-infos
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -28,10 +28,13 @@ INFO_MESSAGES = {
|
||||
}
|
||||
|
||||
|
||||
def linkedin_button():
|
||||
def linkedin_button(next_url: str | None = None):
|
||||
href = "/auth/linkedin"
|
||||
if next_url:
|
||||
href += f"?next={next_url}"
|
||||
return html.A(
|
||||
"Connexion avec LinkedIn",
|
||||
href="/auth/linkedin",
|
||||
href=href,
|
||||
className="btn w-100 mb-2",
|
||||
style={"backgroundColor": "rgb(10, 102, 194)", "color": "white"},
|
||||
)
|
||||
|
||||
@@ -70,7 +70,7 @@ def layout(error: str | None = None, email: str | None = None, **_):
|
||||
],
|
||||
),
|
||||
html.Div("ou", className="text-center text-muted my-2"),
|
||||
linkedin_button(),
|
||||
linkedin_button("/compte/abonnement/mes-infos"),
|
||||
html.Hr(),
|
||||
dcc.Link("Déjà un compte ? Se connecter", href="/connexion"),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user