Git Product home page Git Product logo

shinygcaptchav3's Introduction

shinygCAPTCHAv3

Logo

Package to use Google reCAPTCHAv3 in RShiny web application.

How to install

Run the below command to install the package

devtools::install_github("sarthi2395/shinygCAPTCHAv3")

Sample App

At this stage, you should have already registered your domain in reCAPTCHA admin console and have the site and secret keys ready.

library(shiny)
library(shinyjs)
library(shinygCAPTCHAv3)

ui <- fluidPage(
  useShinyjs(),
  GreCAPTCHAv3Ui(<your site key>,"homepage","responseReceived")
)

server <- function(input, output, session) {
  
  observeEvent(input$responseReceived,{

    result <- GreCAPTCHAv3Server(<your secret key>,input$responseReceived)
    
    if(result$success){
      
      info(result)

    }
  })
  
}

shinyApp(ui, server)

shinygcaptchav3's People

Contributors

sarthi2395 avatar

Stargazers

 avatar  avatar Konrad Stawiski MD PhD avatar

Watchers

 avatar  avatar

Forkers

escri11

shinygcaptchav3's Issues

Adding working examples of handling low scores (e.g. adding a recaptcha V2 quiz)

Hello, I am working on a shiny application and would be requiring recaptcha in that. Thanks for putting up this repo as I was atleast able to get the basic setup up. However I would also like to add actions on lower scores : adding a recaptcha v2 quiz in that case would be ideal, then relooking at the new response and taking actions.
Would it be possible for you to add maybe a working example of such a case? Or some outline for implementing something like this?
Also I was not able to figure out how to attach this to a submit button on the form. Append new data to the database only if recaptcha is successful. It will help if you could put an example for that too.

Thanks.

Adding working examples of handling low score cases : e.g. throwing a V2 recaptcha quiz

Hello, I am working on a shiny application and would be requiring recaptcha in that. Thanks for putting up this repo as I was atleast able to get the basic setup up. However I would also like to add actions on lower scores : adding a recaptcha v2 quiz in that case would be ideal, then relooking at the new response and taking actions.
Would it be possible for you to add maybe a working example of such a case? Or some outline for implementing something like this?
That would help a lot. Thanks. =)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.