Example #1
0
        internal bool AuthenticateUser(string userName, string password)
        {
            bool   flag;
            string statusSuccess;

            PowwaEvents.PowwaEVENT_AUTHENTICATION_START(userName);
            bool flag1 = false;

            try
            {
                try
                {
                    bool flag2 = this.AccessCheck(userName, password);
                    flag1 = flag2;
                    flag  = flag2;
                }
                catch (Exception exception1)
                {
                    Exception exception = exception1;
                    PowwaEvents.PowwaEVENT_DEBUG_LOG0(exception.Message);
                    bool flag3 = false;
                    flag1 = flag3;
                    flag  = flag3;
                }
            }
            finally
            {
                string str = userName;
                if (flag1)
                {
                    statusSuccess = Resources.Status_Success;
                }
                else
                {
                    statusSuccess = Resources.Status_Failure;
                }
                PowwaEvents.PowwaEVENT_AUTHENTICATION_STOP(str, statusSuccess);
            }
            return(flag);
        }