Hello,
we want to enable the possibility to register in the site,
Is it possible?
I've cheched in System administration and User Administration,
but I don't find this,
our version of CWIS is the last:
CWIS Version
4.1.1
PHP Version
7.0.32
Wait for your kind feedback,
Daniela
When no user is logged in, there should be a "Create a Login" link inside the "Log In" box along the right hand side of the page. There is not any setting in System Administration or User Administration controlling this -- it's always enabled.
Thank for your answer,
but we want to enable the option "create a login",
is it possible?
Perhaps I did not understand your question.
You said "we want to enable the possibility to register in the site." I took that to mean that you want users who do not already have an account to be able to create one. And as I said above, that is how CWIS works by default. When no user is logged in, the "Create a Login" link will ALWAYS be displayed. You don't need to enable anything to make it work this way. (Of course, when a user is already logged in this link is not displayed since we know the user already has an account.)
Can you clarify what it is that you want to happen?
Ah, okay. That makes a lot more sense now. :)
While there is no built-in setting to disable account creation as you are asking, it can be done by adding local customizations. (NOTE: All your changes should be done to files inside your 'local' folder. Otherwise they will be overwritten the next time you upgrade CWIS.)
First, create
local/pages/RequestAccount.php
andlocal/pages/RequestAccountComplete.php
, placing the following in both of them:Next, to remove the "Create a Login" link, you'll need to lightly customize the
StdPageEnd.html
template file. Copyinterface/default/include/StdPageEnd.html
tolocal/interface/default/include/StdPageEnd.html
. Then, edit the copy in your 'local
' folder to delete thePrintMenuEntry("Create a Login", ...);
call on lines 104-107.Once the above is done, the "Create a Login" link will no longer appear, and any user familiar enough with CWIS to try accessing the "Request Account" page by manually entering its url will be redirected to your front page.