Güvenlik Doğrulaması,Login Logları

This commit is contained in:
2025-12-29 23:51:25 +03:00
parent 7d55ec93ae
commit 8ba8d2e05e
24 changed files with 1861 additions and 166 deletions

View File

@@ -0,0 +1,14 @@
'use server'
import { generateCaptcha, signCaptcha } from "@/lib/captcha"
export interface CaptchaResponse {
image: string
hash: string
}
export async function getNewCaptcha(): Promise<CaptchaResponse> {
const { text, data } = generateCaptcha()
const hash = signCaptcha(text)
return { image: data, hash }
}