• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Creating user and triggering a random password email as in password lost request

Hi All,

I need this done pretty fast. If anyone can point me to the right script file to look at. It would be much appreciated.

I have an eForm that users would fill in to subscribe to a paid subscription on the forum. Once the form
is filled. I would like to trigger a user creation process in Xenforo and email a random user password to their email address.

1. My question is would it be possible insert into the database to create users in Xenforo? if yes which use table should I look at? if no, which script script file to look at to create a user in Xenforo?

2. How can I trigger Xenforo to email a random password for that particular user as in the last process
of password retrieval process.



Well-known member
I think you should change your workflow to have them register then have them fill out the form, but:

1. Take a look at XenForo_ControllerAdmin_User::actionSave().

2. XenForo_Mail is used. See XenForo_ControllerAdmin_User::actionEmailSend() for usage case.