本文整理汇总了C#中LiquiForce.LFSLive.DA.RAF.LoginGateway.GetEmail方法的典型用法代码示例。如果您正苦于以下问题:C# LoginGateway.GetEmail方法的具体用法?C# LoginGateway.GetEmail怎么用?C# LoginGateway.GetEmail使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LiquiForce.LFSLive.DA.RAF.LoginGateway
的用法示例。
在下文中一共展示了LoginGateway.GetEmail方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Page_Load
// ////////////////////////////////////////////////////////////////////////
// EVENTS
//
protected void Page_Load(object sender, EventArgs e)
{
// Get user data
int loginId = Convert.ToInt32(Session["loginID"]);
int companyId = Int32.Parse(Session["companyID"].ToString());
LoginGateway loginGateway = new LoginGateway(new DataSet());
loginGateway.LoadByLoginId(loginId, companyId);
string userName = loginGateway.GetUserName(loginId, companyId);
string userMail = loginGateway.GetEmail(loginId, companyId);
string password = loginGateway.GetPassword(loginId, companyId);
// Fomat new pass
string newPassword = password;
if (password.Length <= 7)
{
for (int i = password.Length; i <= 7; i++)
{
newPassword = newPassword + "!";
}
}
else
{
newPassword = newPassword + "!";
}
// Verify pass, if not a valid user create one
if (!(Membership.ValidateUser(userName, newPassword)))
{
MembershipCreateStatus createStatus;
Membership.CreateUser(userName, newPassword, userMail, "Password question", "password answer", true, out createStatus);
}
FormsAuthentication.RedirectFromLoginPage(userName, false);
if (Convert.ToBoolean(Session["sgLFS_ITTST_SUPPORTTICKET_ADMIN"]))
{
Response.Redirect(".//dashboardManager.aspx?source_page=out");
}
else
{
Response.Redirect(".//dashboard.aspx?source_page=out");
}
}
示例2: StepGeneralDataNext
private bool StepGeneralDataNext()
{
Page.Validate("General");
if (Page.IsValid)
{
int loginId = Int32.Parse(Session["selectedLoginId"].ToString());
int companyId = Convert.ToInt32(Session["companyID"]);
LoginGateway loginGateway = new LoginGateway();
loginGateway.LoadByLoginId((int)loginId, companyId);
hdfFirstName.Value = loginGateway.GetFirstName((int)loginId, companyId);
hdfLastName.Value = loginGateway.GetLastName((int)loginId, companyId);
hdfMail.Value = loginGateway.GetEmail((int)loginId, companyId);
hdfType.Value = ddlType.SelectedValue;
hdfState.Value = ddlState.SelectedValue;
hdfRequestTimesheet.Value = ckbxRequestTimesheet.Checked.ToString();
hdfSalaried.Value = ckbxSalaried.Checked.ToString();
hdfAssignableSrs.Value = ckbxAssignableSrs.Checked.ToString();
return true;
}
else
{
return false;
}
}