UVdesk

    • Register
    • Login
    • Search
    • Recent

    Solved Add Google recaptcha

    General Discussion
    6
    56
    13500
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • peopleinside
      peopleinside community specialist mod admin @Sanjeev last edited by

      @Sanjeev Yes, thanks!
      As I said I was able to insert and see the visual ReCaptcha but unable to ask as mandatory and see the login form working.

      Without a guide to how to do I will not be able to insert ReCaptcha there.
      Thanks anyway made a more stronger password for the operator.

      UVdesk passionate | Community moderator | External consultant

      If you need help with the community you can visit https://helpdesk.peopleinside.it/it/blog/uv
      You can always get in touch also with the UVdesk team
      https://support.uvdesk.com/en/

      1 Reply Last reply Reply Quote 0
      • Sanjeev
        Sanjeev developer UVdesk Staff mod last edited by

        @peopleinside
        You need to define a name field for recaptcha as same we have added for input field.

        https://github.com/uvdesk/core-framework/blob/master/Resources/views/login.html.twig#L35

        And make it required here as same we did for _username.
        https://github.com/uvdesk/core-framework/blob/master/Resources/views/login.html.twig#L94

        And check if it works for you !!

        peopleinside 2 Replies Last reply Reply Quote 0
        • peopleinside
          peopleinside community specialist mod admin @Sanjeev last edited by

          @Sanjeev great, thanks! Maybe I forget the input type!
          I will try, thanks!

          UVdesk passionate | Community moderator | External consultant

          If you need help with the community you can visit https://helpdesk.peopleinside.it/it/blog/uv
          You can always get in touch also with the UVdesk team
          https://support.uvdesk.com/en/

          1 Reply Last reply Reply Quote 0
          • peopleinside
            peopleinside community specialist mod admin @Sanjeev last edited by

            @Sanjeev nothing, still unable to do.
            I give up

            UVdesk passionate | Community moderator | External consultant

            If you need help with the community you can visit https://helpdesk.peopleinside.it/it/blog/uv
            You can always get in touch also with the UVdesk team
            https://support.uvdesk.com/en/

            1 Reply Last reply Reply Quote 0
            • peopleinside
              peopleinside community specialist mod admin last edited by

              Issues: https://forums.uvdesk.com/topic/1869/issue-with-recaptcha

              UVdesk passionate | Community moderator | External consultant

              If you need help with the community you can visit https://helpdesk.peopleinside.it/it/blog/uv
              You can always get in touch also with the UVdesk team
              https://support.uvdesk.com/en/

              1 Reply Last reply Reply Quote 0
              • darikelwan
                darikelwan last edited by

                i also want to add Google recaptchabut facing some issues in API call, try this method.

                Darik elwan

                1 Reply Last reply Reply Quote 1
                • peopleinside
                  peopleinside community specialist mod admin last edited by

                  I created a GitHub issue requesting a better management of the reCaptcha.
                  https://github.com/uvdesk/community-skeleton/issues/368

                  UVdesk passionate | Community moderator | External consultant

                  If you need help with the community you can visit https://helpdesk.peopleinside.it/it/blog/uv
                  You can always get in touch also with the UVdesk team
                  https://support.uvdesk.com/en/

                  1 Reply Last reply Reply Quote 0
                  • Sanjeev
                    Sanjeev developer UVdesk Staff mod last edited by

                    @peopleinside

                    We also want to provide recaptcha but the problem is a key need to generate for your site from https://www.google.com/recaptcha/ here to use recaptcha into your site and which is unique code for the site as project is opensource(no fix domain or site) so person need to set it up for themselves.

                    But still we will check if we just write code for that and once you enter your recaptcha code for your site then it will enable for you !!

                    peopleinside 1 Reply Last reply Reply Quote 0
                    • peopleinside
                      peopleinside community specialist mod admin @Sanjeev last edited by peopleinside

                      @Sanjeev I use other application different from uvdesk, for example a live chat system.
                      I know is possibile add an option in the admin side where user can activate reCaptcha.

                      SharedScreenshot.jpg

                      For example in live helper chat you have a setting where you can set the secret code for reCaptcha than activate.
                      If reCaptcha is active is showed on login page, if not is not active and not showed.

                      The same should be possible also in Uvdesk.

                      UVdesk passionate | Community moderator | External consultant

                      If you need help with the community you can visit https://helpdesk.peopleinside.it/it/blog/uv
                      You can always get in touch also with the UVdesk team
                      https://support.uvdesk.com/en/

                      1 Reply Last reply Reply Quote 0
                      • Sanjeev
                        Sanjeev developer UVdesk Staff mod last edited by

                        @peopleinside

                        Is live chat self hosted ?

                        peopleinside 1 Reply Last reply Reply Quote 0
                        • peopleinside
                          peopleinside community specialist mod admin @Sanjeev last edited by peopleinside

                          @Sanjeev yes it is. I use on my server.
                          https://helpdesk.peopleinside.it/it/
                          https://livehelperchat.com/3.07-google-re-captcha-in-login-window-522a.html
                          https://livehelperchat.com/demo-12c.html
                          https://demo.livehelperchat.com/site_admin/system/recaptcha

                          UVdesk passionate | Community moderator | External consultant

                          If you need help with the community you can visit https://helpdesk.peopleinside.it/it/blog/uv
                          You can always get in touch also with the UVdesk team
                          https://support.uvdesk.com/en/

                          1 Reply Last reply Reply Quote 0
                          • Sanjeev
                            Sanjeev developer UVdesk Staff mod last edited by

                            @peopleinside

                            Fine, We will check the possibility with our system and will try to add this.

                            peopleinside 1 Reply Last reply Reply Quote 1
                            • peopleinside
                              peopleinside community specialist mod admin @Sanjeev last edited by

                              @Sanjeev will be very useful. Thanks.
                              I updated my previous reply with more link. You have also live helper chat demo online to see how it looks on admin side.

                              UVdesk passionate | Community moderator | External consultant

                              If you need help with the community you can visit https://helpdesk.peopleinside.it/it/blog/uv
                              You can always get in touch also with the UVdesk team
                              https://support.uvdesk.com/en/

                              1 Reply Last reply Reply Quote 0
                              • ali sami farooq
                                ali sami farooq last edited by

                                This thread is very interesting and gives a good knowledge , i will try to add google recaptcha by this method ~ Ali Sami Farooq

                                Ali Sami Farooq

                                1 Reply Last reply Reply Quote 0
                                • Sanjeev
                                  Sanjeev developer UVdesk Staff mod last edited by

                                  @peopleinside

                                  Please generate Recaptcha keys (site key and secret key) for your domain if you need Recaptcha for your site we have updated the code for the same but need to test it for a live domain.

                                  When you will be available reply back to us will will process further.

                                  peopleinside 1 Reply Last reply Reply Quote 0
                                  • peopleinside
                                    peopleinside community specialist mod admin @Sanjeev last edited by

                                    @Sanjeev I'm ready and I'm already use the recaptcha but only on ticket creation. You can find me on Skype if you need or let me know how can I help you.

                                    UVdesk passionate | Community moderator | External consultant

                                    If you need help with the community you can visit https://helpdesk.peopleinside.it/it/blog/uv
                                    You can always get in touch also with the UVdesk team
                                    https://support.uvdesk.com/en/

                                    1 Reply Last reply Reply Quote 0
                                    • Sanjeev
                                      Sanjeev developer UVdesk Staff mod last edited by

                                      @peopleinside

                                      Have you generated site key and secret key for your domain for google recaptcha?

                                      peopleinside 1 Reply Last reply Reply Quote 0
                                      • peopleinside
                                        peopleinside community specialist mod admin @Sanjeev last edited by

                                        @Sanjeev Sure

                                        UVdesk passionate | Community moderator | External consultant

                                        If you need help with the community you can visit https://helpdesk.peopleinside.it/it/blog/uv
                                        You can always get in touch also with the UVdesk team
                                        https://support.uvdesk.com/en/

                                        1 Reply Last reply Reply Quote 0
                                        • Sanjeev
                                          Sanjeev developer UVdesk Staff mod last edited by Sanjeev

                                          @peopleinside

                                          Ok please take a backup of your current project and apply the changes for a new one.

                                          For generating recaptcha site key and secret key for your domain take help from here.

                                          Step 1.

                                          Delete your core-framework and support-center-bundle under vendor/uvdesk folder of your project.

                                          And clone both bundle using command below at the same place (under vendor/uvdesk folder)

                                          git clone https://github.com/uvdesk/core-framework
                                          git clone https://github.com/uvdesk/support-center-bundle

                                          1 Reply Last reply Reply Quote 0
                                          • Sanjeev
                                            Sanjeev developer UVdesk Staff mod last edited by Sanjeev

                                            Step 2.

                                            Open config/packages folder of your project.
                                            You will see two files here twig.yaml and uvdesk.yaml

                                            Update below 3 keys in twig.yaml

                                             is_google_captcha_enabled: '%is_google_captcha_enabled%'
                                             recaptcha_site_key: '%recaptcha_site_key%'
                                             recaptcha_secret_key: '%recaptcha_secret_key%'
                                            
                                            
                                            

                                            In uvdesk.yaml update below lines:

                                            recapchaUvdesk.PNG

                                                is_google_captcha_enabled: true
                                                recaptcha_site_key: 'site_key'
                                                recaptcha_secret_key: 'secret_key'
                                            

                                            Finally clear your cache using below command:

                                            php bin/console c:c

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post