Hi
In the Version 5 i had the "User Registration" Action with email activation, random password, Send Joomla activation and so on.
I miss this in Version 6. How can i set a Random Password for example?
Thank you
Best regards
Christoph
In the Version 5 i had the "User Registration" Action with email activation, random password, Send Joomla activation and so on.
I miss this in Version 6. How can i set a Random Password for example?
Thank you
Best regards
Christoph
Put a PHP block before your user registration, call it "password"
$alphabet = "abcdefghijklmnopqrstuwxyzABCDEFGHIJKLMNOPQRSTUWXYZ0123456789";Then use {var:password} in your user registration action.
$pass = []; for ($i = 0; $i < 8; $i++) { $n = rand(0, count($alphabet)-1); $pass[$i] = $alphabet[$n]; } return $pass;
Hi Bob and healyhatman
Thanks for helping!
Maybe i did something wrong?
So i have the customcode before the joomla user action:

The PHP code looks like this:

Then i have var:password in the password field provider

All the Best
Christoph
BTW: the Image Uploadfunction in your Forum is still not working ...
Thanks for helping!
Maybe i did something wrong?
So i have the customcode before the joomla user action:

The PHP code looks like this:

Then i have var:password in the password field provider

All the Best
Christoph
BTW: the Image Uploadfunction in your Forum is still not working ...
PHP block not custom code block.
Hi,
Not tested but I think that needs an implode($pass, ''); before the return line.
Bob
Not tested but I think that needs an implode($pass, ''); before the return line.
Bob
Hi
Thank you. So i tried to use the code with a php-block. I'm not shure. Do i have to use the php code with or without <?php ?> Brackets within the php-block?
So anyway it doesn't work.
This is my setup :

All the best
Christoph
Thank you. So i tried to use the code with a php-block. I'm not shure. Do i have to use the php code with or without <?php ?> Brackets within the php-block?
So anyway it doesn't work.
This is my setup :

All the best
Christoph
Without the PHP tags
This topic is locked and no more replies can be posted.