Setting passwords for new Agents/Customers



  • I don't see an option for setting the password when creating new agents/customers, is it possible to enable these fields?

    I haven't set up mail fetching etc yet so can only assume the agents would normally get an email with setup instructions? is this the normal process?



  • its a common problem there i think.
    i found this problem months ago in my jackpot website
    hope to got the answer soon



  • I found this:

    ***Hello B- RG,
    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/c...
    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/c...

    And replace :
    {% if userDetails and userDetails.isVerified %}
    BY
    {% if user_service.isAccessAuthorized('ROLE_ADMIN') %}

    Thanks,
    Team UVDesk***

    Source: Comments on this page: https://support.uvdesk.com/es/blog/how-can-admin-change-agents-password

    However I have done the above and see no change, do I have to reload a service or config?



  • Nobody? Surely this has been requested before, is it possible?



  • As I understand your requirement you want to update the password from the admin side for the customer or agent

    For this, you have to update two files your project

    1. Update your updateSupportAgent.html.twig in your project :

    locate path in your project:
    your_project_name->vendor->uvdesk->core-framework->Resources->views->Agent->updateSupportAgent.html.twig

    after open, this file, find line number 142

    open this file reach to this section.

    And replace:

    {% if userDetails and userDetails.isVerified %}
    

    BY

    {% if user_service.isAccessAuthorized('ROLE_ADMIN') %}
    
    1. Update your updateSupportCustomer.html.twig in your project :

    locate path in your project:
    your_project_name->vendor->uvdesk->core-framework->Resources->views->Customers->updateSupportCustomer.html.twig

    after open, this file, find line number 82

    open this file reach to this section.

    And replace:

    {% if userDetails and userDetails.isVerified %}
    

    BY

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

    After the updates, Run command PHP bin/console c:c to clear your project cache.

    Also, clear your browser cache. Now you can see in the edit section of the Customer & Agent password section is visible



  • Thanks, everybody, I followed the steps outlined above and can confirm this is now resolved.


Log in to reply