Skip to content

Commit 0cd708b

Browse files
be careful with case sensitivity when converting email addresses
1 parent 46ddf2f commit 0cd708b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

ide/modDBFunctions.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,14 @@ def UpdateUsers(**kwargs):
2525
if not c.email:
2626
if c.gaeUser:
2727
modCount += 1
28-
c.email = c.gaeUser.email()
28+
c.email = c.gaeUser.email().lower()
29+
c.put()
30+
if (modCount % 100) == 0:
31+
print("Modified 100 more users: ", c.key.id(), " modCount = ", modCount, "email=", c.email)
32+
elif c.gaeUser:
33+
if c.email != c.email.lower():
34+
modCount += 1
35+
c.email = c.email.lower()
2936
c.put()
3037
if (modCount % 100) == 0:
3138
print("Modified 100 more users: ", c.key.id(), " modCount = ", modCount, "email=", c.email)

0 commit comments

Comments
 (0)