【发布时间】:2017-01-06 09:42:06
【问题描述】:
我在 liferay 中创建了一个用户,其电子邮件地址为“ABCD@domain.com”,但在 Liferay 数据库中的 USER_ 表中检查时,其存储为“abcd@domain.com”。我正在使用以下 API
UserLocalServiceUtil.addUser(creatorUserId,
companyId, autoPassword, password1, password2,
autoScreenName, screenName, usernameoremail, facebookId,
openId, Locale.ENGLISH, usernameoremail,
StringPool.BLANK, StringPool.BLANK, prefixId, suffixId,
male, birthdayMonth, birthdayDay, birthdayYear,
jobTitle, groupIds, organizationIds, roleIds,
userGroupIds, sendEmail, serviceContext);
在这一点上,我们确定电子邮件是我们发送的格式。
知道为什么会这样吗?我们可以使用 portal-ext 中的任何属性来按原样存储它吗?
【问题讨论】:
-
为什么会有问题?
-
不确定这会对您有所帮助,但还是看看吧:web.liferay.com/fr/community/wiki/-/wiki/Main/Developing+a+CAS/…
-
@Jens 这可能是个问题,因为@(本地邮箱部分)之前的部分可能区分大小写(即使不确定是否有任何邮件服务器强制执行它)
-
检查stackoverflow.com/questions/9807909/… - 虽然本地部分的大小写敏感似乎是合法的,但可以安全地假设它由于处处处理不当而未被使用。