Backport Fas PR #177
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
61a1a2cc1d
commit
df3205a62a
2 changed files with 6 additions and 2 deletions
|
@ -349,6 +349,8 @@ class User(controllers.Controller):
|
|||
# Account being changed
|
||||
target = People.by_username(targetname)
|
||||
|
||||
email = email.lower()
|
||||
|
||||
emailflash = ''
|
||||
changed = [] # record field names that changed for fedmsg
|
||||
|
||||
|
@ -987,6 +989,8 @@ If this is not expected, please contact admin@fedoraproject.org and let them kno
|
|||
"on our sites. We do not knowingly collect or solicit personal " +\
|
||||
"information about children under 13."))
|
||||
turbogears.redirect('/')
|
||||
email = email.lower()
|
||||
verify_email = verify_email.lower()
|
||||
email_test = select([PeopleTable.c.username],
|
||||
func.lower(PeopleTable.c.email)==email.lower())\
|
||||
.execute().fetchall()
|
||||
|
|
|
@ -169,7 +169,7 @@ class NonFedoraEmail(validators.FancyValidator):
|
|||
|
||||
def _to_python(self, value, state):
|
||||
# pylint: disable-msg=C0111,W0613
|
||||
return value.strip()
|
||||
return value.strip().lower()
|
||||
|
||||
def validate_python(self, value, state):
|
||||
# pylint: disable-msg=C0111
|
||||
|
@ -182,7 +182,7 @@ class EVEmail(validators.FancyValidator):
|
|||
|
||||
def _to_python(self, value, state):
|
||||
# pylint: disable-msg=C0111,W0613
|
||||
return value.strip()
|
||||
return value.strip().lower()
|
||||
|
||||
def validate_python(self, value, state):
|
||||
# pylint: disable-msg=C0111
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue