I solved it. I post the result here for if another one could be interested.
I made it in the following way:
1- Remove all the things related to the Password in the newcustomer.ftl
2- In the createCustomer method write the following:
< s et field="parameters.PASSWORD" value="defaultValue"/>
< s et field="parameters.CONFIRM_PASSWORD" value="defaultValue"/>
MarioF wrote
Hi all,
I would like to remove the password in the register process and then send a random password to the customer mail, for this I will use the forgotpassword action.
I removed the password things in the newcustomer.ftl and then the login screen appears without these input boxes but I can't save the new user. I tried to comment all the things related to password in the CustomerEvent.xml but I get an error.
So, now I change the strategy and I want to pass a default values for the Password and confirm password (and the user must not see these fields on the screen). The question is, how can I set these fields (PASSWORD and CONFIRM_PASSWORD) in the ftl file?
Thanks in advance,
Mario.