mirror of
https://github.com/lumapu/ahoy.git
synced 2025-07-25 12:17:12 +02:00
fix logout
This commit is contained in:
parent
4c52e9c307
commit
43af07716e
3 changed files with 6 additions and 4 deletions
|
@ -107,8 +107,10 @@ void web::loop(void) {
|
|||
void web::tickSecond() {
|
||||
if(0 != mLogoutTimeout) {
|
||||
mLogoutTimeout -= 1;
|
||||
if(0 == mLogoutTimeout)
|
||||
mProtected = true;
|
||||
if(0 == mLogoutTimeout) {
|
||||
if(strlen(mConfig->sys.adminPwd) > 0)
|
||||
mProtected = true;
|
||||
}
|
||||
|
||||
DPRINTLN(DBG_DEBUG, "auto logout in " + String(mLogoutTimeout));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue