Prudence
Member
I'm presently working on developing an add-on, but I've hit a bit of a snag. I'm trying to extend XenForo's registration service, though I'm unsure on how much of the original code I need to make it work.
What I'm trying to do is create a custom page where forum users with the appropriate permissions could create a user account (while logged in). I'm not so concerned with the spam protections that the original registration service has (if it's possible to remove them) as the users with these permissions would be verified users. I've found the original XenForo registration services at
From my own troubleshooting I realize you can't just add a row to the database to create a user, my question now is what's the minimum that XenForo needs, and what service needs to be called, for XenForo to accept inputs and register a user?
What I'm trying to do is create a custom page where forum users with the appropriate permissions could create a user account (while logged in). I'm not so concerned with the spam protections that the original registration service has (if it's possible to remove them) as the users with these permissions would be verified users. I've found the original XenForo registration services at
src/XF/Service/User/Registration.php
and src/XF/Pub/Controller/Register.php
From my own troubleshooting I realize you can't just add a row to the database to create a user, my question now is what's the minimum that XenForo needs, and what service needs to be called, for XenForo to accept inputs and register a user?