1. 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

Discussion in 'XenForo Development Discussions' started by Deddy, Jan 1, 2014.

  1. Deddy

    Deddy Member

    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.

  2. tyteen4a03

    tyteen4a03 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.
  3. Deddy

    Deddy Member

    Thank you. Will look into it. :)

Share This Page