Google App Engine using UserProperty to bind data

I am writing an application in GAE. To relate the current user to the data in my application, I relied on the equality between users.get_current_user () and members.user (see Model below). When I encounter difficulties, this is when a user signs up with an email address using a different capitalization than his original login ( janeDoe@example.com ! = Janedoe@example.com ). What is the most reliable way to bind the current user to specific application data?

class members(db.Model):
    firstName=db.StringProperty(verbose_name='First Name',required=True)
    lastName=db.StringProperty(verbose_name='Last Name',required=True)
    user=db.UserProperty()
+3
source share
2 answers

- user.user_id() . , .

+4

, : .

0

Source: https://habr.com/ru/post/1796651/


All Articles