mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-10 00:42:14 +00:00
Fix 403 loop due to previous "user" cookie logic
This commit is contained in:
parent
8a7ead5924
commit
f2a438c33a
1 changed files with 2 additions and 1 deletions
|
|
@ -373,7 +373,8 @@ static int getAuthorizedUser(const struct mg_connection *conn,
|
|||
mg_get_cookie(conn, "user", username, username_len);
|
||||
mg_get_cookie(conn, "password", password, sizeof(password));
|
||||
|
||||
return(ntop->checkUserPassword(username, password));
|
||||
if(username[0] && password[0])
|
||||
return(ntop->checkUserPassword(username, password));
|
||||
}
|
||||
|
||||
/* Important: validate the session */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue