I think it may deal with binding the v-model="registerForm.g-recaptcha-response" to the recaptcha element. Google's recaptcha javascript code generates the element on the fly. I'm not sure how to go about adding this custom attribute...or if that's the right approach.
Jul 25, 2016
9
Level 4
Spark Registration form & Recaptcha
I'm struggling a bit with integrating Recaptcha and Spark on the registration page. I am attempting to use the https://github.com/greggilbert/recaptcha Validator for Laravel 5.
I think my hold up is being able to correctly integrate the recaptcha box in with the existing Vue.js form. Any suggestions?
I've added 'g-recaptcha-response' => 'required|recaptcha' to my Spark::validateUsersWith call inside SparkServiceProvider.php (similar to adding a custom field).
I've also added 'g-recaptcha-response': '' within Spark.forms.register in app.js.
No joy... Looking for any tips you might have.
Funny - the recaptcha box is taunting me as I create this new post ;)
Please or to participate in this conversation.