EPrints Technical Mailing List Archive

Message: #01162


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] Re: restricting account creation


Check cfg.d/registration.pl:

 

# This function allows you to allow/deny sign-ups from

# particular email domains

$c->{check_registration_email} = sub

{

  my( $repository, $email ) = @_;

 

  # registration allowed

  return 1 if $email =~ /\@westminster\.ac\.uk$/;

 

  return 0; # registration denied

}

 

Best,

 

                Jose.

 

 

From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Malcolm Bodger
Sent: 10 October 2012 15:53
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] restricting account creation

 

Hi,

 

We use local accounts, not LDAP accounts, and would like to restrict requests for new accounts to users with a 'westminster.ac.uk' email address. I'm sure this possible, but how - and is it easy to do?

 

Regards,

Malcolm.

The University of Westminster is a charity and a company limited by guarantee. Registration number: 977818 England. Registered Office: 309 Regent Street, London W1B 2UW.