šŸ”“ 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
    18848
    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 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
                        • Sanjeev
                          Sanjeev developer UVdesk Staff last edited by Sanjeev

                          Step 3.

                          Require recaptcha package in your project using below command:

                          composer require google/recaptcha "^1.2"

                          Also update your site key and secret key of google recaptcha for your domain in uvdesk.yaml file.

                          Clear your cache:
                          php bin/console c:c

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

                            @Sanjeev

                            The "ocramius/package-versions" plugin was skipped because it requires a Plugin API version ("^1.0.0") that does not match your Composer installation ("2.0.0"). You may need to run composer update with the "--no-plugins" option.
                            The "uvdesk/composer-plugin" plugin was skipped because it requires a Plugin API version ("^1.0") that does not match your Composer installation ("2.0.0"). You may need to run composer update with the "--no-plugins" option.
                            The "symfony/flex" plugin was skipped because it requires a Plugin API version ("^1.0") that does not match your Composer installation ("2.0.0"). You may need to run composer update with the "--no-plugins" option.
                            ./composer.json has been updated
                            The "ocramius/package-versions" plugin was skipped because it requires a Plugin API version ("^1.0.0") that does not match your Composer installation ("2.0.0"). You may need to run composer update with the "--no-plugins" option.
                            The "uvdesk/composer-plugin" plugin was skipped because it requires a Plugin API version ("^1.0") that does not match your Composer installation ("2.0.0"). You may need to run composer update with the "--no-plugins" option.
                            The "symfony/flex" plugin was skipped because it requires a Plugin API version ("^1.0") that does not match your Composer installation ("2.0.0"). You may need to run composer update with the "--no-plugins" option.
                            
                            Your requirements could not be resolved to an installable set of packages.
                            
                              Problem 1
                                - symfony/flex is locked to version v1.4.8 and an update of this package was not requested.
                                - symfony/flex v1.4.8 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
                              Problem 2
                                - uvdesk/composer-plugin is locked to version v1.0.1 and an update of this package was not requested.
                                - uvdesk/composer-plugin v1.0.1 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
                              Problem 3
                                - ocramius/package-versions 1.4.1 requires composer-plugin-api ^1.0.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
                                - doctrine/doctrine-migrations-bundle 2.1.2 requires doctrine/migrations ^2.2 -> satisfiable by doctrine/migrations[2.2.0].
                                - doctrine/migrations 2.2.0 requires ocramius/package-versions ^1.3 -> satisfiable by ocramius/package-versions[1.4.1].
                                - doctrine/doctrine-migrations-bundle is locked to version 2.1.2 and an update of this package was not requested.
                            
                            ocramius/package-versions only provides support for Composer 2 in 1.8+, which requires PHP 7.4.
                            If you can not upgrade PHP you can require composer/package-versions-deprecated to resolve this with PHP 7.0+.
                            
                            You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.
                            

                            I'm now resuming my backup as it not works.
                            The ReCaptcha is showed in the contact form but never work.

                            šŸ’¬ 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

                              Please downgrade your composer version to 1.6.5 and then try.

                              Also take a clone of core-framework again as recently we have updated some code there.

                              We have tested recaptcha and it is working perfectly now.

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

                                I have also an issue: cannot run

                                php bin/console c:c
                                

                                because every time I get

                                Unable to write in the "/uvdesk/var/cache/prod"
                                 directory
                                

                                and I need run this command as root. I change already all uvdesk folders and file to be on not root user and for a while I'm able to run but after some time I get again the same issue.

                                šŸ’¬ 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 peopleinside

                                  @Sanjeev Sorry I cannot downgrade the composer as I use other software that required composer 2 that is more safer and updated.

                                  šŸ’¬ 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

                                    ok we will provide a zip of project with all latest changes you just need to place it to your server and just need to add Database details in .env file.

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

                                      @Sanjeev ok. Hope you will keep in mind if you will send any update in the future my server will not use obsolete PHP or composer, etc. I always work to keep software updated so your project should support composer 2.

                                      šŸ’¬ 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

                                        For that we always provide a project ZIP on official site where you don't need to do anything. But still we will look into it to resolve issues for composer 2

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

                                          @Sanjeev OK will wait the zip file.
                                          Have you also tested if a message of error is showed if no ReCaptcha is entered?
                                          Be sure also this works and the error can be translated.

                                          In my partial test no error was showed but I was not able to do the latest steps in your latest post because of composer.

                                          šŸ’¬ 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 @ercanyuzuk

                                            Download project from here.

                                            Just add your Database details in .env file and run the project.

                                            peopleinside 2 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post