Esempio n. 1
0
        /** True if logged in and  **/
        public bool SetupLogin()
        {
            string[] st     = SQLManager.GetDataFromSQL(username);
            string   hashed = st[1];
            bool     testP  = CryptoManager.CheckHash(password, hashed);

            if (testP)
            {
                AccountCharacter = Newtonsoft.Json.JsonConvert.DeserializeObject <CharacterPlayer>(st[0], new StringEnumConverter());
                return(true);
            }
            return(false);
        }