Sitecore外部网登录?

Sitecore外部网登录?,sitecore,Sitecore,我试图让下面的代码工作,但没有运气 bool success=Sitecore.Security.Authentication.AuthenticationManager.Login(UserName.Text,Password.Text); 如果(成功) { string path=Request.QueryString[“path”]; 重定向(String.IsNullOrEmpty(path)?“/”:path); } 成功总是错误的,即使我知道输入的用户名和密码

我试图让下面的代码工作,但没有运气

bool success=Sitecore.Security.Authentication.AuthenticationManager.Login(UserName.Text,Password.Text);
如果(成功)
{           
string path=Request.QueryString[“path”];
重定向(String.IsNullOrEmpty(path)?“/”:path);
}
成功总是错误的,即使我知道输入的用户名和密码是正确的,并且是在extranet域上创建的

我错过了什么


(它是Sitecore 6.2)

我猜
LoginManager
需要包括域在内的完整用户名。因此,请尝试:

bool success=Sitecore.Security.Authentication.AuthenticationManager.Login(
“extranet\\”+用户名.文本,密码.文本);

我将在此处添加我的评论:要登录Sitecore用户,域必须是“Sitecore”