Site Yönetimi,Kullanıcı Girişi,Karanlık mod özellikleri db bağlantıları.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
import { useState } from "react"
|
||||
import { useRouter } from "next/navigation"
|
||||
import Link from "next/link"
|
||||
import { supabase } from "@/lib/supabase"
|
||||
import { createClient } from "@/lib/supabase-browser"
|
||||
import { Button } from "@/components/ui/button"
|
||||
import { Input } from "@/components/ui/input"
|
||||
import { Label } from "@/components/ui/label"
|
||||
@@ -11,6 +11,7 @@ import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle }
|
||||
import { AlertCircle, Loader2 } from "lucide-react"
|
||||
|
||||
export default function LoginPage() {
|
||||
const supabase = createClient()
|
||||
const router = useRouter()
|
||||
const [email, setEmail] = useState("")
|
||||
const [password, setPassword] = useState("")
|
||||
@@ -33,7 +34,7 @@ export default function LoginPage() {
|
||||
return
|
||||
}
|
||||
|
||||
router.push("/")
|
||||
router.push("/dashboard")
|
||||
router.refresh()
|
||||
} catch (err: any) {
|
||||
setError("Bir hata oluştu. Lütfen tekrar deneyin.")
|
||||
|
||||
Reference in New Issue
Block a user