Forums / Install & configuration / How to disable user registration??
Massimiliano Bariola
Monday 27 March 2006 8:26:37 am
Hi,
I need to disable the "register" button in admin siteaccess, and also the possibility for users to register into the user siteaccess. how can I do it? I thought there was a settign but I cannot find it. I want the only way to allow user creation to be manually, via the admin interface, by properly - authorized admin users.
thank you :-)
Kristof Coomans
Monday 27 March 2006 8:43:15 am
See http://ez.no/doc/ez_publish/technical_manual/3_6/reference/configuration_files/site_ini/siteaccessrules/rules
independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org
Betsy Gamrat
Monday 27 March 2006 10:10:38 am
I had trouble using the roles and permissions to disable user registration in an earlier version of eZ, so I modifed the /user/login template and just added the word "disabled" to the <b>sign in</b> button tag for the appropriate site view, and some descriptive text.
Tuesday 28 March 2006 1:48:57 am
@ Kristof
Hi, ok, so what views of the user module do I need to disable in user siteaccess? and if I disable "register" on admin siteaccess, will I still be able to create users manually?
I have to ask this since the site is live and I cannot experiment ...
@Betsy: thanks, I have thought of that too, but I need something more structural. The guy I found registered must have been someone who knew about ezp since there is no link at all on the site leading t oa registration yet he did. so I think he just typed in the standard url for user/register.
luckily the guest users have no real privileges ....
Tuesday 28 March 2006 2:13:42 am
Yes, you can disable user/register. You will still be able to create new users in the admin site access (that's content/action and content/edit).
Tuesday 28 March 2006 5:33:02 pm
I had about 150 unwelcome "guests" ...
I will use the roles as described in this thread next time - I agree it is a better solution.
Thank you.