1

I am trying to create portal user by using:
Site.createPortalUser(u, account.Id,'Sep@2012',true); method.
But i am getting the type exception:

"System.TypeException: You are already logged in".

I am testing with system admin profile. Could any one please suggest what to do to resolve the issue.

4

1 回答 1

0

这是因为您正在通过管理员配置文件测试社区。

解决方案是您应该在隐身浏览器上打开社区页面,以便您以真正的访客用户身份访问该页面。

于 2020-09-21T06:41:38.010 回答