Good day. You need to change the default user registration in Opencar. The task is to remove the fields with password entry and confirmation, and instead, the password should be randomly generated and sent to the client's mail. I removed the fields themselves, but I have no idea where to dig further (beginner) … Tell me the correct way to solve this problem, thanks …
When sending data to the server, you can generate passwords
<?php $chars="qazxswedcvfrtgbnhyujmkiolp1234567890QAZXSWEDCVFRTGBNHYUJMKIOLP"; $max=10; $size=StrLen($chars)-1; $password=null; while($max--) $password.=$chars[rand(0,$size)]; echo $password;
$password – here your password, write it down to the database, and add the password that you got to the letter.