mirror of
https://github.com/alexhopeoconnor/WiFiManager.git
synced 2026-10-04 02:48:13 +10:00
Revert "Both infoids and _ap_password are intialized by check time. (#1344)"
This reverts commit 9f6dcad791.
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user