You could easily find answers to questions like this by studying the mojoPortal source code.
if (siteSettings.UseEmailForLogin)
{
FormsAuthentication.SetAuthCookie(
user.Email, true);
}
else
{
FormsAuthentication.SetAuthCookie(
user.LoginName, true);
}
Hope that helps,
Joe