ENABLE LOG IN

6 posts / 0 new
Last post
dani
ENABLE LOG IN

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

chalpin
Re: ENABLE LOG IN

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.

dani
Re: ENABLE LOG IN

Thank for your answer,

but we want to enable the option "create a login", 

is it possible?

 

 

chalpin
Re: ENABLE LOG IN

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?

dani
Re: ENABLE LOG IN

 

We want that the resources are used only for consultation, we want to disable the ability to create a user.
sorry, I have made a mistake, not enable, but disable.
 
chalpin
Re: ENABLE LOG IN

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 and local/pages/RequestAccountComplete.php, placing the following in both of them:

<?PHP $GLOBALS["AF"]->SetJumpToPage("Home");

Next, to remove the "Create a Login" link, you'll need to lightly customize the StdPageEnd.html template file. Copy interface/default/include/StdPageEnd.html to local/interface/default/include/StdPageEnd.html. Then, edit the copy in your 'local' folder to delete the PrintMenuEntry("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.