cancel
Showing results for 
Search instead for 
Did you mean: 

Hide password and confirm password buttons from Alfresco UI New User Page and hardcode one default password for all the new users.

anky_p
Confirmed Champ
Confirmed Champ

Hi,

My task is to hide password and verify password fields from Alfresco UI New User Page and hardcode one default password for all the new users. I have already made the custom code such that the new user is receiving the mail with username and random password...

How to hide the password and verify password fields? Any suggestion will be helpful...

1 ACCEPTED ANSWER

afaust
Legendary Innovator
Legendary Innovator

This is not something Alfresco ever considered people might want to customize, so this is something rather hard to customize. The simplest / easiest option in this case might just be to override the users.get.html.ftl template via the web-extension folder and change the HTML markup of the create user form, i.e. apply the CSS class "hidden" to the field rows of the fields you want to suppress and set the value on the password inputs to your default password.

View answer in original post

11 REPLIES 11

anky_p
Confirmed Champ
Confirmed Champ

share/src/main/amp/web/components/console/users.js

share/src/main/amp/config/alfresco/web-extension/components/console/usergroups/users.get.html.ftl

Please let me know whether the location is wrong, As I have been making all the mentioned changes in the above files.

kalpesh_c2
Star Collaborator
Star Collaborator

Your folder structure to override "users.get.html.ftl" is little incorrect. In order to override "users.get.html.ftl" place it at

src\main\amp\config\alfresco\web-extension\site-webscripts\org\alfresco\components\console\usersgroups\

Note: You have also made usergroups instead of usersgroups