Here is a question about the User functions that others may be able to
answer.

My app (rakontu) creates invitation-only groups (for story sharing).
Group managers use email addresses to tell the app whom they have
invited to join the group. When an invited person first visits the
app, it checks the users.get_current_user().email() against the emails
the group manager typed in. If it finds a match, the person becomes a
group member and things go smoothly from there.

However, there is a problem with case sensitivity in gmail addresses.
When a person creates a gmail account, they type in anything they like
- upper or lower case or whatever. What shows on their gmail page
(where they read their email) is all in lower case. But what the
users.get_current_user().email() returns is NOT all lower case. It's
whatever they typed in when they first created the gmail account. And
most people have no idea what that was.

For example, say I created a gmail account called "JJones". When I log
in to the gmail account, it says at the top "[email protected]". When I
invite "jjones" to join a Rakontu group, and the person makes their
first visit, users.get_current_user().email() returns "JJones" and the
cases don't match and the person can't join. But if I invite "JJones"
to join, the cases DO match and they can join.

The problem is, there is no way for the group manager to know what the
person's correct email case is, since it is apparently impossible to
find the original capitalization on the account (I've been all over
gmail looking). You can even sign in to Google with either case form
of your gmail account.

I *could* do a case-insensitive match on the emails to see if
users.get_current_user().email() matches the list. Probably it is not
very likely that two people with similar but different-case emails
could have been asked to join at the same time. But I don't like
having to do that especially because email is *supposed* to be case
sensitive. I'd like to find a better way to resolve this.

Any advice?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to