Car*_*lan 5 email google-app-engine google-account
是user_id()独一无二的吗?
也就是说,即使 aGoogle Account被删除了user_id(),那个被删除的账户的 也不会再出现在其他任何一个user_id,对吧?
我们正在澄清我们对本声明的理解 http://code.google.com/appengine/docs/python/users/userclass.html#User_user_id
user_id()
如果电子邮件地址与 a 关联
Google account,则user_id返回用户的唯一永久 ID,一个字符串。无论用户是否更改
Yes it is. It is a String of digits that is immutable to your email changes etc. Other properties such as email, nickname and other properties are mutable.
EDIT
它是独一无二的!
来自https://developers.google.com/appengine/docs/python/users/userobjects
有效用户的 User 对象可以提供唯一 ID value for the user that stays the same even if the user changes her email address. The user_id() method returns this ID, a str value.
无论您的应用程序使用哪种身份验证方法,用户对象都具有相同的形式。如果您将身份验证选项从 Google 帐户切换到 OpenID,数据存储区中的现有用户对象仍然有效。
还要小心,因为 UserProperty 是可变的以及讨论过的。
| 归档时间: |
|
| 查看次数: |
2943 次 |
| 最近记录: |