コード例 #1
0
        private bool IsAValidKey(string key)
        {
            bool retVal = !string.IsNullOrEmpty(key);
            if (retVal) {

                RequestTable table = new RequestTable();

                table.ExpireOldRequests();

                int nUserID = table.GetValidRequest(key);

                retVal = (nUserID >= 0);

                if (retVal) {
                    UsersDB db = new UsersDB();

                    db.MarkUserEmailVerifyied(nUserID);
                }

            }
            return retVal;
        }
コード例 #2
0
        private bool IsAValidKey(string key)
        {
            bool retVal = !string.IsNullOrEmpty(key);

            if (retVal)
            {
                RequestTable table = new RequestTable();

                table.ExpireOldRequests();

                int nUserID = table.GetValidRequest(key);

                retVal = (nUserID >= 0);

                if (retVal)
                {
                    UsersDB db = new UsersDB();

                    db.MarkUserEmailVerifyied(nUserID);
                }
            }
            return(retVal);
        }