Пример #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="client"></param>
        /// <param name="accountName"></param>
        /// <returns></returns>
        public bool IsLoginAllowed(Client client, string accountName)
        {
            if (accountName.ToLower() != client.accountName.ToLower())
            {
                return(false);
            }

            ln.GetLoginName(accountName);
            lf.GetLoginFlags(accountName);

            if (ln.LoginN != null && accountName.ToLower() == ln.LoginN.ToLower() && lf.FlagsL == i_false)
            {
                return(true); // Login OK
            }
            else
            {
                return(false); // Login Not Permitted
            }
        }