Revert "Both infoids and _ap_password are intialized by check time. (#1344)"

This reverts commit 9f6dcad791.
This commit is contained in:
tablatronix
2022-02-24 11:44:45 -06:00
parent d8c81ecca1
commit fd7f400b25
+2 -2
View File
@@ -1940,7 +1940,7 @@ void WiFiManager::handleInfo() {
#endif
for(size_t i=0; i<infos;i++){
if(!infoids[i].isEmpty()) page += getInfoData(infoids[i]);
if(infoids[i] != NULL) page += getInfoData(infoids[i]);
}
page += F("</dl>");
if(_showInfoUpdate){
@@ -3266,7 +3266,7 @@ String WiFiManager::toStringIp(IPAddress ip) {
boolean WiFiManager::validApPassword(){
// check that ap password is valid, return false
if (_apPassword.isEmpty()) _apPassword = "";
if (_apPassword == NULL) _apPassword = "";
if (_apPassword != "") {
if (_apPassword.length() < 8 || _apPassword.length() > 63) {
#ifdef WM_DEBUG_LEVEL