This topic is locked

Admin-only access to registration

10/26/2011 1:15:07 PM
PHPRunner General questions
B
btrdev author

Is there some way to make the user registration page generated by PHPR available only to the administrator?
I want the system administrator to register new users by entering details such as name, username, group, password, etc. I am using "encrypt password" and "restrict weak passwords" from the PHPR security options, so the password created for the new user must conform to that. Users will be sent the relevant information after being registered and can change their passwords after login.
The "Registration page" generated by PHPR will do, but how do I make that page accessible only to the Administrator? I do not want to allow any users to self-register.
Although I can remove the link to the Registration page and only make it available to the administrator, anyone who knows the name of the page can still access it since the registration page itself has no security.

C
cgphp 10/26/2011

Are you using dynamic permissions ?

You can disable the Registration page and manually send an email when a new user is added. The admin_users custom view is automatically created by PHPrunner. You can control when a new user is added in the "Before record added" event of this custom view.