MCPcopy Create free account
hub / github.com/badyun/AShare / validateClick

Function validateClick

utils/geetest.js:175–192  ·  view source on GitHub ↗
(geetest_challenge, geetest_validate, geetest_seccode)

Source from the content-addressed store, hash-verified

173 },
174
175 validateClick(geetest_challenge, geetest_validate, geetest_seccode) {
176 return new Promise((resolve, reject) => {
177 captcha.validate(null, {
178 geetest_challenge: geetest_challenge,
179 geetest_validate: geetest_validate,
180 geetest_seccode: geetest_seccode
181 }, (err, success) => {
182 if (err) {
183 reject(err)
184
185 } else if (!success) {
186 resolve(false)
187 } else {
188 resolve(true)
189 }
190 });
191 })
192 }
193}
194
195

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected