I need to create a module that when visited with some get parameters in the url to be able to create user with specific roles in the database.
So if someone visits mydomain.com/my_custom_module/create/john/smith/role_id/filename_that_includes_hidden_token_for_validation
Will create the user John Smith with a role specified by the id passed and in order not to allow anyone to create users I have a temp txt file with a random generated name where I keep a token
Is that possible? Is there a better way?
Thanks in advance
Why I want a module like this:
I have a site written in cakePHP and the need for a forum came up. The client heard that drupal's advanced forum is the best solution (I've tried to persuade him to use phpbb with no luck...) but he wants the forum to be private and to give access and roles to existing members from the cakePHP's site admin. So I'll provide him an "give forum access to member" button which will redirect to the url described above after I've created a temp file with a hidden token somewhere in the server for security issues. I don't know if it is the best way to do this.