šŸ”“ January 2024 Alert: Forum support inactive!
New forum registration are currently closed.
Use GitHub discussions
.

    UVdesk

    • Login
    • Search
    • Recent

    Solved Add Google recaptcha

    General Discussion
    6
    56
    18987
    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 EX helping member @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.

      šŸ’¬ You can also ask help on GitHub Discussions
      šŸ”“ I am no more active on Uvdesk
      šŸ”“ Forum support is inactive!

      1 Reply Last reply Reply Quote 0
      • Sanjeev
        Sanjeev developer UVdesk Staff 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 EX helping member @Sanjeev last edited by

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

          šŸ’¬ You can also ask help on GitHub Discussions
          šŸ”“ I am no more active on Uvdesk
          šŸ”“ Forum support is inactive!

          1 Reply Last reply Reply Quote 0
          • peopleinside
            peopleinside EX helping member @Sanjeev last edited by

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

            šŸ’¬ You can also ask help on GitHub Discussions
            šŸ”“ I am no more active on Uvdesk
            šŸ”“ Forum support is inactive!

            1 Reply Last reply Reply Quote 0
            • peopleinside
              peopleinside EX helping member last edited by

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

              šŸ’¬ You can also ask help on GitHub Discussions
              šŸ”“ I am no more active on Uvdesk
              šŸ”“ Forum support is inactive!

              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 EX helping member last edited by

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

                  šŸ’¬ You can also ask help on GitHub Discussions
                  šŸ”“ I am no more active on Uvdesk
                  šŸ”“ Forum support is inactive!

                  1 Reply Last reply Reply Quote 0
                  • Sanjeev
                    Sanjeev developer UVdesk Staff 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 EX helping member @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.

                      šŸ’¬ You can also ask help on GitHub Discussions
                      šŸ”“ I am no more active on Uvdesk
                      šŸ”“ Forum support is inactive!

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

                        @peopleinside

                        Is live chat self hosted ?

                        peopleinside 1 Reply Last reply Reply Quote 0
                        • peopleinside
                          peopleinside EX helping member @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

                          šŸ’¬ You can also ask help on GitHub Discussions
                          šŸ”“ I am no more active on Uvdesk
                          šŸ”“ Forum support is inactive!

                          1 Reply Last reply Reply Quote 0
                          • Sanjeev
                            Sanjeev developer UVdesk Staff 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 EX helping member @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.

                              šŸ’¬ You can also ask help on GitHub Discussions
                              šŸ”“ I am no more active on Uvdesk
                              šŸ”“ Forum support is inactive!

                              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 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 EX helping member @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.

                                    šŸ’¬ You can also ask help on GitHub Discussions
                                    šŸ”“ I am no more active on Uvdesk
                                    šŸ”“ Forum support is inactive!

                                    1 Reply Last reply Reply Quote 0
                                    • Sanjeev
                                      Sanjeev developer UVdesk Staff 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 EX helping member @Sanjeev last edited by

                                        @Sanjeev Sure

                                        šŸ’¬ You can also ask help on GitHub Discussions
                                        šŸ”“ I am no more active on Uvdesk
                                        šŸ”“ Forum support is inactive!

                                        1 Reply Last reply Reply Quote 0
                                        • Sanjeev
                                          Sanjeev developer UVdesk Staff 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 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