Exemplo n.º 1
0
        // guid, password, ignore
        protected override void HandleRequest()
        {
            DbAccount acc;
            var       status = Database.Verify(Query["guid"], Query["password"], out acc);

            if (status == LoginStatus.OK)
            {
                WriteLine(FriendList.FromDb(Database, acc).ToXml());
            }
            else
            {
                WriteLine("<Friends></Friends>");
            }
        }