   contenu += liens;
   contenu += "\n<br></div></body></html>\n";
   server.send(200, "text/html", contenu);
-  if (ouireset == 1) {
-    Serial.println("Réglages changé");
-    if (noupass != resetpass) {
-      preferences.putString("resetpass", noupass);
-      resetpass = noupass;
-      Serial.print("NOUVEAU Password : ");
-      Serial.println(resetpass);
-    }
-    if (lakey != thingkey) {
-      preferences.putString("thingkey", lakey);
-      thingkey = lakey;
-      Serial.print("NOUVEL API KEY : ");
-      Serial.println(thingkey);
-    }
-    if (leuse != usesenseur) {
-      preferences.putUInt("usesenseur", leuse);
-      usesenseur = leuse;
-      lesliens();
-      Serial.print("NOUVEAU use les senseurs : ");
-      Serial.println(usesenseur);
-    }
-    if (lechan != thingchanel) {
-      preferences.putString("thingchanel", lechan);
-      thingchanel = lechan;
-      lesliens();
-      Serial.print("NOUVEAU channel : ");
-      Serial.println(thingchanel);
-    }
-  }
 }
 
 // convert string 2 char*

    logs[1] += " Not logged in !";
    return server.requestAuthentication();
  }
  if (testteu == "OUI") {
    ouireset = 1;
    if (noupass == "") {

    }
    if (lechan == "") {
      ouireset = 3;
    }
  }
  if (ouireset == 1) {
    Serial.println("Réglages changé");
    if (noupass != resetpass) {
      preferences.putString("resetpass", noupass);
      resetpass = noupass;
      Serial.print("NOUVEAU Password : ");
      Serial.println(resetpass);
    }
    if (lakey != thingkey) {
      preferences.putString("thingkey", lakey);
      thingkey = lakey;
      Serial.print("NOUVEL API KEY : ");
      Serial.println(thingkey);
    }
    if (leusedallas != usesenseurdallas) {
      preferences.putUInt("usesenseurdal", leusedallas);
      usesenseurdallas = leusedallas;
      lesliens();
      Serial.print("NOUVEAU use dallas : ");
      Serial.println(usesenseurdallas);
    }
    if (leusedht != usesenseurdht) {
      preferences.putUInt("usesenseurdht", leusedht);
      usesenseurdht = leusedht;
      lesliens();
      Serial.print("NOUVEAU use dht : ");
      Serial.println(usesenseurdht);
    }
    if (lechan != thingchanel) {
      preferences.putString("thingchanel", lechan);
      thingchanel = lechan;
      lesliens();
      Serial.print("NOUVEAU channel : ");
      Serial.println(thingchanel);
    }
  }
  String contenu = "<!DOCTYPE html>\n<html lang=\"en\" dir=\"ltr\" class=\"client-nojs\">\n<head>\n";
