Ejemplo n.º 1
0
    private bool ValidateUserAvailability(string userId)
    {
        MembershipModule membershipModule = new MembershipModule();
        if (membershipModule.GetMembershipByUsername(userId) == null)
            return false;

        return true;
    }
Ejemplo n.º 2
0
    private bool CheckUserPassword(string userId,string password)
    {
        if (ValidateUserAvailability(userId))
        {
            MembershipModule membershipModule = new MembershipModule();
            InventorySystem.Business.Membership membership = new InventorySystem.Business.Membership();
            membership = membershipModule.GetMembershipByUsername(userId);

            if (membership.Username == userId && membership.Password == password)
                return true;

        }
        return false;
    }