feat: hcaptcha
This commit is contained in:
@@ -7,9 +7,9 @@ import { login } from '../lib/api';
|
||||
const router = useRouter();
|
||||
const authStore = useAuthStore();
|
||||
|
||||
const onSubmit = async ({ username, password }) => {
|
||||
const onSubmit = async ({ username, password, hcaptchaResponse }) => {
|
||||
try {
|
||||
const response = await login(username, password);
|
||||
const response = await login(username, password, hcaptchaResponse);
|
||||
const { jwt } = response;
|
||||
authStore.setJwt(jwt);
|
||||
alert('Login successful!');
|
||||
|
||||
Reference in New Issue
Block a user