|
@@ -1761,6 +1761,10 @@ int HTTP_ConfirmWebPwd(char *bufIn, char *bufOut, uint16_t lenBufIn, uint16_t *l
|
|
|
sprintf(tempStr, "%d", user_id);
|
|
|
strcat(bufOut, "\r\nSet-Cookie: role=");
|
|
|
strcat(bufOut, tempStr);
|
|
|
+ if(sSettings.sRADIUS.Auth_enable)
|
|
|
+ strcat(bufOut, "\r\nSet-Cookie: auth=1");
|
|
|
+ else
|
|
|
+ strcat(bufOut, "\r\nSet-Cookie: auth=0");
|
|
|
strcat(bufOut, "\r\n\r\n");
|
|
|
strcat(bufOut,"<!DOCTYPE html><html lang=""><head><meta http-equiv=\"refresh\" content=\"0;url=/index.html\"/></head></html>\r\n\r\n");
|
|
|
|
|
@@ -1825,7 +1829,10 @@ void HTTP_LOGIN(char *bufOut, uint16_t *lenBufOut)
|
|
|
strcat(bufOut, "\r\nSet-Cookie: id=");
|
|
|
strcat(bufOut, tempStr);
|
|
|
strcat(bufOut, "\r\nSet-Cookie: role=0");
|
|
|
- strcat(bufOut, "\r\nSet-Cookie: auth=0");
|
|
|
+ if(sSettings.sRADIUS.Auth_enable)
|
|
|
+ strcat(bufOut, "\r\nSet-Cookie: auth=1");
|
|
|
+ else
|
|
|
+ strcat(bufOut, "\r\nSet-Cookie: auth=0");
|
|
|
strcat(bufOut, "\r\n\r\n");
|
|
|
strcat(bufOut,"<!DOCTYPE html><html lang=""><head><meta http-equiv=\"refresh\" content=\"0;url=/index.html\"/></head></html>\r\n\r\n");
|
|
|
|