igorkasyanchuk / new_google_recaptcha

reCAPTCHA v3 Ruby on Rails gem
https://www.railsjazz.com/
MIT License
85 stars 23 forks source link

Display custom captcha in specific element or position #9

Open muhammadyana opened 5 years ago

muhammadyana commented 5 years ago

Hi. is it possible to put captcha in specificif position / element?

igorkasyanchuk commented 5 years ago

How does it look for you? Please share a screenshot.

Also do you know if it's possible with this solution: https://stackoverflow.com/questions/50583284/how-do-you-set-the-badge-position-with-recaptcha-v3 ?

muhammadyana commented 5 years ago

its look in bottom right. i want to put it after password form

screen shot 2019-01-25 at 16 55 17

Also do you know if it's possible with this solution: https://stackoverflow.com/questions/50583284/how-do-you-set-the-badge-position-with-recaptcha-v3 ?

where the configuration? is it in new_google_recaptcha.rb ?

igorkasyanchuk commented 5 years ago
  1. try to make form of gem, and made modifications here https://github.com/igorkasyanchuk/new_google_recaptcha/blob/master/lib/new_google_recaptcha/view_ext.rb similar to what in stackoverflow.
  2. connect your form in gemfile
  3. see if it works
  4. make a PR
  5. maybe you also would need to add a new propertry to config here https://github.com/igorkasyanchuk/new_google_recaptcha/blob/master/lib/new_google_recaptcha.rb#L6
  6. PR will be merged to this gem and you will be added to contributors :)
muhammadyana commented 5 years ago

let me try

igorkasyanchuk commented 5 years ago

@muhammadyana have you tried? does it work?

NerdyBoyCool commented 5 years ago

@igorkasyanchuk May I try it ?(and make a PR)

  1. try to make form of gem, and made modifications here https://github.com/igorkasyanchuk/new_google_recaptcha/blob/master/lib/new_google_recaptcha/view_ext.rb similar to what in stackoverflow.
  2. connect your form in gemfile
  3. see if it works
  4. make a PR
  5. maybe you also would need to add a new propertry to config here https://github.com/igorkasyanchuk/new_google_recaptcha/blob/master/lib/new_google_recaptcha.rb#L6
  6. PR will be merged to this gem and you will be added to contributors :)
igorkasyanchuk commented 5 years ago

yes, anyone could make a PR. If you want - welcome :)