Revision [16683]
This is an old revision of DanWestUserReg made by TpiAhn on 2007-05-31 10:35:44.
Admin User Registration
What
- Allows User in UserAdmins Group to register users Requires Group ACL update
- Does NOT login to the new registered user account
Since I was using Wikka as a content management system and did not want the general public to be able to register, I needed to have a method to register users under administrator control. I hack up the user registration action from DarTar. The main function is it allows you to register a user but does NOT log you in after doing so. So it allows you to add a new user to the database with all the validations but will not log you in to that user. It also checks to make sure you have 'write' access to the page the action is defined on as a basic permission trigger to allow you to register users.
Use
- Create a page with the {{userreg}} action
Installation
- Put following code into the userreg.php file in actions directory
Code
Action: userreg.php (Or name it what you like)%%(php)
<?php
constants
define('MIN_PASSW_LENGTH', '5');
print $this->Format('
New User Registration page
');
if ($user = $this->GetUser()