Solved 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.twigopen 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
- 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.twigafter 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') %}
- 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.twigafter 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.
-
@leedsy90 could you please tell me how to access the following path as i have installed it through docker container and i am not able to find the path to edit this file. please if you could help me?
-
@noman I don't think additional info are necessary on this post: if you need follow the solution on this topic you need simply find the patch indicated in previous post. if you have difficulty you can include some screenshots to make us understand better.