Exemplo n.º 1
0
		private void detach_aspnet_Memberships(aspnet_Membership entity)
		{
			this.SendPropertyChanging();
			entity.jkp_Person = null;
		}
Exemplo n.º 2
0
    private Monks.aspnet_Membership Create_aspnet_Membership(Monks.aspnet_Application app, string salt)
    {
        Monks.aspnet_Membership curUser = new Monks.aspnet_Membership();
        curUser.ApplicationId = app.ApplicationId;
        curUser.UserId = Guid.NewGuid();
        curUser.Password = txtPassword1.Text.Trim(); //EncodePassword(txtPassword1.Text.Trim().ToLower(), 1, salt);
        curUser.PasswordFormat = 0; //1; // 0 means the password is in the clear. If set it to one we need to hash the password but then we can't see it if we need to fix something for the user.
        curUser.PasswordSalt = salt;
        curUser.Email = txtEmailAddress1.Text.ToLower().Trim();
        curUser.LoweredEmail = txtEmailAddress1.Text.ToLower().Trim();
        curUser.PasswordQuestion = txtQuestion.Text;
        curUser.PasswordAnswer = txtAnswer.Text; //EncodePassword(txtAnswer.Text.Trim().ToLower(CultureInfo.InvariantCulture), 1, salt);
        curUser.IsApproved = true;
        curUser.IsLockedOut = false;
        curUser.CreateDate = DateTime.Now;
        curUser.LastLoginDate = DateTime.Now;
        curUser.LastPasswordChangedDate = DateTime.Now;
        curUser.LastLockoutDate = DateTime.Parse("1/1/1754 12:00:00 AM");
        curUser.FailedPasswordAttemptCount = 0;
        curUser.FailedPasswordAttemptWindowStart = DateTime.Parse("1/1/1754 12:00:00 AM");
        curUser.FailedPasswordAnswerAttemptWindowStart = DateTime.Parse("1/1/1754 12:00:00 AM");
        curUser.FailedPasswordAnswerAttemptCount = 0;
        curUser.Comment = "";

        return curUser;
    }
Exemplo n.º 3
0
		private void detach_aspnet_Memberships(aspnet_Membership entity)
		{
			this.SendPropertyChanging();
			entity.aspnet_Application = null;
		}