Neah version calendar fix 3 debuger sec chance danger debug 66
This commit is contained in:
parent
f22f9490e4
commit
f331080d39
@ -1,14 +1,18 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { signIn } from "next-auth/react";
|
import { signIn } from "next-auth/react";
|
||||||
|
import { useSearchParams } from "next/navigation";
|
||||||
|
|
||||||
export function SignInForm() {
|
export function SignInForm() {
|
||||||
|
const searchParams = useSearchParams();
|
||||||
|
const callbackUrl = searchParams.get("callbackUrl") || "/";
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="text-center">
|
<div className="text-center">
|
||||||
<h1 className="text-4xl font-bold text-white mb-4">Bienvenue sur Enkun</h1>
|
<h1 className="text-4xl font-bold text-white mb-4">Bienvenue sur Enkun</h1>
|
||||||
<p className="text-white/80 mb-8">Connectez-vous pour accéder à votre espace</p>
|
<p className="text-white/80 mb-8">Connectez-vous pour accéder à votre espace</p>
|
||||||
<button
|
<button
|
||||||
onClick={() => signIn("keycloak", { callbackUrl: "https://lab.slm-lab.net/" })}
|
onClick={() => signIn("keycloak", { callbackUrl })}
|
||||||
className="px-8 py-3 bg-[#0F172A] text-white rounded hover:bg-[#1E293B] transition-colors"
|
className="px-8 py-3 bg-[#0F172A] text-white rounded hover:bg-[#1E293B] transition-colors"
|
||||||
>
|
>
|
||||||
Se connecter
|
Se connecter
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user