đź”´ January 2024 Alert: Forum support inactive!
New forum registration are currently closed.
Use GitHub discussions
.

    UVdesk

    • Login
    • Search
    • Recent

    Solved How Admin can update password of Agents and Customer?

    Technical Help
    3
    9
    1247
    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.
    • S
      Shoman last edited by

      I am using the community helpdesk for internal support. Can I as an admin update password on behalf of my agent and customer?

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

        @Shoman

        You can achieve this by simply made few changes.

        >>>For changing password for Agents:
        locate path in your project:

        vendor->uvdesk->core-framework->Resources->views->Agent->updateSupportAgent.html.twig

        open this file reach to this section https://github.com/uvdesk/core-framework/blob/master/Resources/views/Agents/updateSupportAgent.html.twig#L142-L160

        And replace:

        {% if userDetails and userDetails.isVerified %}

        BY

        {% if user_service.isAccessAuthorized('ROLE_ADMIN') %}

        >>>For changing Customers password:

        locate path in your project:

        vendor->uvdesk->core-framework->Resources->views->Customers->updateSupportCustomer.html.twig

        open this file reach to this section https://github.com/uvdesk/core-framework/blob/master/Resources/views/Customers/updateSupportCustomer.html.twig#L82-L100

        And replace :

        {% if userDetails and userDetails.isVerified %}

        BY

        {% if user_service.isAccessAuthorized('ROLE_ADMIN') %}

        1 Reply Last reply Reply Quote 0
        • W
          webziver last edited by

          Hi UVDesk,
          I used the instructions above. The administrator can change the agent's password but cannot change the member's password, the member password is not updated in the database.
          I use version 1.0.13 (2021-04-02).
          Please help me!

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

            @webziver

            are you taking about customer password update by admin?

            1 Reply Last reply Reply Quote 0
            • W
              webziver last edited by

              Yes, Admin cannot update password of customer.

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

                @webziver

                We will check and let you update.

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

                  @webziver

                  Locate file in your project:
                  vendor/uvdesk/core-framework/Controller/Customer.php

                  Open Customer.php and replace its code from here.

                  Now clear your project cache by:
                  php bin/console c:c

                  Now update the password for customer and try to login using credentials.

                  If still any problem exist please let us know.

                  1 Reply Last reply Reply Quote 0
                  • W
                    webziver last edited by

                    You help very quickly. Customer's password has been updated. Thank you so much UVdesk.

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

                      @webziver

                      Glad to know your issue has been resolved.
                      Stay tuned with us for future updates here you can watch repository for updates.

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