mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 22:44:46 +02:00

* add laravel turnstile * add config & settings for turnstile * publish view to center captcha * completely replace reCAPTCHA * update FailedCaptcha event * add back config for domain verification * don't set language so browser lang is used
10 lines
350 B
TypeScript
10 lines
350 B
TypeScript
import http from '@/api/http';
|
|
|
|
export default (email: string, recaptchaData?: string): Promise<string> => {
|
|
return new Promise((resolve, reject) => {
|
|
http.post('/auth/password', { email, 'cf-turnstile-response': recaptchaData })
|
|
.then((response) => resolve(response.data.status || ''))
|
|
.catch(reject);
|
|
});
|
|
};
|