mirror of
https://github.com/lumapu/ahoy.git
synced 2025-04-30 18:56:27 +02:00
parent
6533143e80
commit
c7060e40ff
3 changed files with 11 additions and 6 deletions
|
@ -1,5 +1,8 @@
|
||||||
# Development Changes
|
# Development Changes
|
||||||
|
|
||||||
|
## 0.6.3 - 2023-04-04
|
||||||
|
* fix login, password length was not checked #852
|
||||||
|
|
||||||
## 0.6.2 - 2023-04-04
|
## 0.6.2 - 2023-04-04
|
||||||
* fix login from multiple clients #819
|
* fix login from multiple clients #819
|
||||||
* fix login screen on small displays
|
* fix login screen on small displays
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
//-------------------------------------
|
//-------------------------------------
|
||||||
#define VERSION_MAJOR 0
|
#define VERSION_MAJOR 0
|
||||||
#define VERSION_MINOR 6
|
#define VERSION_MINOR 6
|
||||||
#define VERSION_PATCH 2
|
#define VERSION_PATCH 3
|
||||||
|
|
||||||
//-------------------------------------
|
//-------------------------------------
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|
|
@ -130,11 +130,13 @@ class Web {
|
||||||
bool prot;
|
bool prot;
|
||||||
prot = mProtected;
|
prot = mProtected;
|
||||||
if(!prot) {
|
if(!prot) {
|
||||||
uint8_t ip[4];
|
if(strlen(mConfig->sys.adminPwd) > 0) {
|
||||||
ah::ip2Arr(ip, request->client()->remoteIP().toString().c_str());
|
uint8_t ip[4];
|
||||||
for(uint8_t i = 0; i < 4; i++) {
|
ah::ip2Arr(ip, request->client()->remoteIP().toString().c_str());
|
||||||
if(mLoginIp[i] != ip[i])
|
for(uint8_t i = 0; i < 4; i++) {
|
||||||
prot = true;
|
if(mLoginIp[i] != ip[i])
|
||||||
|
prot = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue