Esempio n. 1
0
        /// <summary>
        /// Try login withou registration
        /// </summary>
        public static void SendAnonLogin(string nickname)
        {
            BufferLastLogin(nickname, "", "", AccountData.LoginMethod.Email);

            XElement body = new XElement(
                new XElement("Request",
                             //add login data
                             new XElement("Connection",
                                          new XElement("ClientVersion", Application.version),
                                          new XElement("LoginMethod", "Anonymous"),
                                          new XElement("Nickname", nickname)
                                          )
                             )
                );

            AccountsTransport.Send(body);
        }
Esempio n. 2
0
        /// <summary>
        /// try login via email and password
        /// </summary>
        public static void SendEmailLogin(string email, string password)
        {
            BufferLastLogin("", email, password, AccountData.LoginMethod.Email);

            XElement body = new XElement(
                new XElement("Request",
                             //add login data
                             new XElement("Connection",
                                          new XElement("ClientVersion", Application.version),
                                          new XElement("LoginMethod", "EmailLogin"),
                                          new XElement("Email", email),
                                          new XElement("Password", password)
                                          )
                             )
                );

            AccountsTransport.Send(body);
        }