See the Mailing Lists Page for how to subscribe and unsubscribe.
eprints_tech messages
Please note: this page shows emails that have been sent to the eprints_tech mailing list. Some of these may be spam emails we have failed to filter.
RE: [EP-tech] User registration in Eprints3
From: "Barbara Cumbers" <b.cumbers AT bbk.ac.uk>
Date: Thu, 24 Jul 2008 10:32:04 +0100
| Threading: | ↑ [EP-tech] Adding an institutional id to creators_id from M.D.Mcfarlane AT lse.ac.uk • This Message |
*** ↵ http://www.eprints.org/tech.php/id/%3CEMEW-k6NAWSc53bd91e386698b66baccee3a54af3d6-2048F6E2EA4DFE40B249EDB127BDF3B105E11F67%40ASH.birkbeck.ac.uk%3E *** EPrints community wiki - http://wiki.eprints.org/ Thanks, Tim. Excuse my ignorance, but where do I find cgi/register? Best wishes, Barbara Barbara Cumbers Electronic Projects Librarian Birkbeck, University of London Malet Street London WC1E 7HX b.cumbers AT bbk.ac.uk Tel: 020 7079 0899 Fax: 020 7631 6066 http://www.bbk.ac.uk/lib/ > -----Original Message----- > From: owner-eprints-tech AT ecs.soton.ac.uk [mailto:owner-eprints- > tech AT ecs.soton.ac.uk] On Behalf Of Tim Brody > Sent: 22 July 2008 11:54 > To: EPrints.org Technical List > Subject: Re: [EP-tech] User registration in Eprints3 > > *** http://www.eprints.org/tech.php/id/%3C1216724053.6177.13.camel%40dell- > desktop.example.com%3E > *** EPrints community wiki - http://wiki.eprints.org/ > > Hi, > > Unfortunately you can't easily achieve this right now - you will need to > do some perl hackings. > > In cgi/register there is a section > "if( defined ...::user_with_username". > > If you add after that, something like this: > > if( $v->{email} !~ /\ AT bbc\.co\.uk$/ ) > { > return mk_err_page( > $session, > "cgi/register:invalid_email_bbc", > $fieldlist, > $v, > {email => $session->make_text( $v->{email} )} > ); > } > > And add an appropriate phrase for the error. > > I think being able to apply a regexp to an email is on the list of > TODOs. > > All the best, > Tim. > > On Mon, 2008-07-21 at 11:53 +0100, Barbara Cumbers wrote: > > *** http://www.eprints.org/tech.php/id/%3CEMEW- > k6KBsC081c4b11868e6718c82adcfe963b1a60- > 2048F6E2EA4DFE40B249EDB127BDF3B105E11F5B%40ASH.birkbeck.ac.uk%3E > > *** EPrints community wiki - http://wiki.eprints.org/ > > > > Hello, > > > > Can anyone help me with restricting user registration to people with a > > bbk.ac.uk e-mail address? Thanks. > > > > Best wishes, > > > > Barbara > > > > > > Barbara Cumbers > > Electronic Projects Librarian > > Birkbeck, University of London > > Malet Street > > London WC1E 7HX > > > > b.cumbers AT bbk.ac.uk > > > > Tel: 020 7079 0899 > > Fax: 020 7631 6066 > > http://www.bbk.ac.uk/lib/ > > > >
[index] [prev] [next] [options] [help]




