Ignore:
Timestamp:
03/15/11 19:01:41 (2 years ago)
Author:
Jose Benito <jose.benito.gonzalez@…>
Branches:
master, burotel, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.98b1, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, 0da0c1403bae8e51d8229f460181c71b9e6dda72
Children:
23945f
Parents:
0b2250
git-author:
Adrian Moennich <jerome.ernst.monnich@…> (03/15/11 17:39:55)
git-committer:
Jose Benito <jose.benito.gonzalez@…> (03/15/11 19:01:41)
Message:

[FIX] Do not allow re-registration with same email

  • when registering while not logged in, do not allow re-registration with the same email address while logged in
  • fixes #691
File:
1 edited

Legend:

Unmodified
Added
Removed
  • indico/MaKaC/webinterface/rh/registrationFormDisplay.py

    rab85b3 r907607  
    2323import MaKaC.webinterface.pages.registrationForm as registrationForm 
    2424from MaKaC import registration 
    25 import MaKaC.webinterface.pages.epayments as epayments 
    2625from MaKaC.errors import FormValuesError,MaKaCError, AccessError 
    2726from MaKaC.common import Config 
     
    168167                self._redirect(urlHandlers.UHConfRegistrationForm.getURL(self._conf)) 
    169168                return 
     169            if self._conf.hasRegistrantByEmail(self._getUser().getEmail()): 
     170                raise FormValuesError("You have already registered with the email address \"%s\". If you need to modify your registration, please contact the managers of the conference."%self._getUser().getEmail()) 
    170171        rp = registration.Registrant() 
    171172        self._conf.addRegistrant(rp) 
Note: See TracChangeset for help on using the changeset viewer.