MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / submitTurnstile

Function submitTurnstile

web/src/components/settings/SystemSetting.js:420–439  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

418 };
419
420 const submitTurnstile = async () => {
421 const options = [];
422
423 if (originInputs['TurnstileSiteKey'] !== inputs.TurnstileSiteKey) {
424 options.push({ key: 'TurnstileSiteKey', value: inputs.TurnstileSiteKey });
425 }
426 if (
427 originInputs['TurnstileSecretKey'] !== inputs.TurnstileSecretKey &&
428 inputs.TurnstileSecretKey !== ''
429 ) {
430 options.push({
431 key: 'TurnstileSecretKey',
432 value: inputs.TurnstileSecretKey,
433 });
434 }
435
436 if (options.length > 0) {
437 await updateOptions(options);
438 }
439 };
440
441 const submitLinuxDOOAuth = async () => {
442 const options = [];

Callers

nothing calls this directly

Calls 1

updateOptionsFunction · 0.85

Tested by

no test coverage detected