Пример #1
0
 //TODO: The Register page, as it is, is not exactly compatible with how things are set up in the DB. Have it insert password and username and save the other values for later.
 private IEnumerator sendToDB()
 {
     interactDBScript.sendToDB(destinationURL, varNames, varValues);
     while (interactDBScript.IsRequesting)
     {
         yield return(null);
     }
     Debug.Log(interactDBScript.CleanData);
     buttonPressScript.loadScene();
 }
Пример #2
0
 public IEnumerator verifyingCredentials()
 {
     //TODO: Hash password if you have the time
     string[] varNames = { "username", "password" };
     string[] varValues = { username, password };
     dbInteractionScript.sendToDB("http://psiwebservice/verifyCredentials.php", varNames, varValues);
     while (dbInteractionScript.IsRequesting)
     {
         yield return null;
     }
     string temp = dbInteractionScript.CleanData[0];
     if (temp.Equals("true"))
     {
         buttonPressScript.loadScene();
     }
 }