Beispiel #1
0
        /// <summary>
        /// Author:  Amin
        /// Created Date:01/01/2011
        /// Description:This is used for user access authentication event.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void AuthenticateUser(string userID, string password)
        {
            try
            {
                Sha1 sha1Obj = new Sha1();

                if (!new MemberShips().CheckMemberShip(userID, sha1Obj.GetEncryptString(password)))
                {
                    //////////   new UserDA().InsertUserLog(Request.UserHostAddress.ToString(), userName, password);
                    // lblMessage.Text = "Log In Failed.";
                    MessageBox.Show("Incorrect Login Information.", "Login Failed");
                }
                else
                {
                    new Home().Show();
                    this.Hide();
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }