Пример #1
0
 public void Login()
 {
     if ((!string.IsNullOrEmpty(name.text)) && (!string.IsNullOrEmpty(motdepass.text)))
     {
         StartCoroutine(webRequest.GetToken <Player>  ("http://localhost:53985/token", "grant_type=password&username="******"&password="******"Vueillez bien remplir votre login");
     }
     else if (!(string.IsNullOrEmpty(name.text)) && (string.IsNullOrEmpty(motdepass.text)))
     {
         pp.Show("Vueillez bien remplir votre mot de passe");
     }
     else if ((string.IsNullOrEmpty(name.text)) && (string.IsNullOrEmpty(motdepass.text)))
     {
         pp.Show("Vueillez bien remplir votre login et votre mot de passe");
     }
 }