Browse Source

0.6.3

* fix login, password length was not checked #852
pull/846/head^2
lumapu 2 years ago
parent
commit
c7060e40ff
  1. 3
      src/CHANGES.md
  2. 2
      src/defines.h
  3. 12
      src/web/web.h

3
src/CHANGES.md

@ -1,5 +1,8 @@
# Development Changes
## 0.6.3 - 2023-04-04
* fix login, password length was not checked #852
## 0.6.2 - 2023-04-04
* fix login from multiple clients #819
* fix login screen on small displays

2
src/defines.h

@ -13,7 +13,7 @@
//-------------------------------------
#define VERSION_MAJOR 0
#define VERSION_MINOR 6
#define VERSION_PATCH 2
#define VERSION_PATCH 3
//-------------------------------------
typedef struct {

12
src/web/web.h

@ -130,11 +130,13 @@ class Web {
bool prot;
prot = mProtected;
if(!prot) {
uint8_t ip[4];
ah::ip2Arr(ip, request->client()->remoteIP().toString().c_str());
for(uint8_t i = 0; i < 4; i++) {
if(mLoginIp[i] != ip[i])
prot = true;
if(strlen(mConfig->sys.adminPwd) > 0) {
uint8_t ip[4];
ah::ip2Arr(ip, request->client()->remoteIP().toString().c_str());
for(uint8_t i = 0; i < 4; i++) {
if(mLoginIp[i] != ip[i])
prot = true;
}
}
}

Loading…
Cancel
Save