lcollong
FabriKant d'applications web
Hi,
Using the juser plugin, I want to prefilled with some values most of the sync fields of this plugin. Specially while creating a new user. I'm using js to "read" the values from the firstname/name fields of the main table and fill in the name/username sync fields with some adequate values. Works well. However, I want to generate a random password the same way. I'm able to fill in the first part of the password element but I can't reach the "password_check" second field. Is this possible ?
this is working on the first part of the password element :
form.formElements.get('fk_membres___j_password').update(randomstring);
but this is not working :
form.formElements.get('fk_membres___j_password_check').update(randomstring);
is there a special method ?
If I use a regular field to sync password on, the juser plugin sync on edit functionality wipes off the password !.....
Using the juser plugin, I want to prefilled with some values most of the sync fields of this plugin. Specially while creating a new user. I'm using js to "read" the values from the firstname/name fields of the main table and fill in the name/username sync fields with some adequate values. Works well. However, I want to generate a random password the same way. I'm able to fill in the first part of the password element but I can't reach the "password_check" second field. Is this possible ?
this is working on the first part of the password element :
form.formElements.get('fk_membres___j_password').update(randomstring);
but this is not working :
form.formElements.get('fk_membres___j_password_check').update(randomstring);
is there a special method ?
If I use a regular field to sync password on, the juser plugin sync on edit functionality wipes off the password !.....