Difference between revisions of "Removing User Registration"

From EPrints Documentation
Jump to: navigation, search
(Added to Howto and Customisation categories)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
[[Category:Howto]]
 
 
==Removing User Registration==
 
==Removing User Registration==
  
Line 46: Line 45:
  
 
  service httpd restart
 
  service httpd restart
 +
 +
[[Category:Authentication]] [[Category:Howto]] [[Category:Customisation]]

Latest revision as of 12:14, 21 January 2022

Removing User Registration

Disable web user registration, edit the file;

 vi /var/lib/eprints3/archives/yourarchivename/cfg/cfg.d/registration.pl

Change the line :

$c->{allow_web_signup} = 1;

to :

$c->{allow_web_signup} = 0;

Change the file;

 vi /var/lib/eprints3/archives/yourarchivename/cfg/lang/en/static/error401.xpage
 <p><a href="{$config{perl_url}}/set_password">Register / Reset my password</a></p>

to :

 <p><a href="{$config{perl_url}}/set_password">Reset my password</a></p>


To remove register link under the search, edit the file;

vi /var/lib/eprints3/archives/yourarchivename/cfg/lang/en/phrases/dynamic.xml

Change the line :

<epp:phrase id="dynamic:not_logged_in">Not logged in. <a href="{$config{userhome}}">login</a> | <a  href="{$config{perl_url}}/register">register</a></epp:phrase>

To :

<epp:phrase id="dynamic:not_logged_in">Not logged in. <a href="{$config{userhome}}">login</a></epp:phrase>


Then as apache user run :

/var/lib/eprints3/bin/generate_static yourachivename

As root run :

service httpd restart