Skip to content

Commit

Permalink
authentication issue
Browse files Browse the repository at this point in the history
  • Loading branch information
vitotai committed Feb 24, 2017
1 parent 3f39535 commit 2941d37
Show file tree
Hide file tree
Showing 118 changed files with 356 additions and 1 deletion.
3 changes: 3 additions & 0 deletions BrewPiLess/Actuator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@









Expand Down
3 changes: 3 additions & 0 deletions BrewPiLess/Actuator.h
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ class ValueActuator ACTUATOR_BASE_CLASS_DECL









Expand Down
3 changes: 3 additions & 0 deletions BrewPiLess/ActuatorArduinoPin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@









Expand Down
3 changes: 3 additions & 0 deletions BrewPiLess/ActuatorArduinoPin.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ class DigitalPinActuator ACTUATOR_BASE_CLASS_DECL









Expand Down
3 changes: 3 additions & 0 deletions BrewPiLess/ActuatorAutoOff.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ class AutoOffActuator : public Actuator {









Expand Down
3 changes: 3 additions & 0 deletions BrewPiLess/ArduinoEepromAccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ class ArduinoEepromAccess









Expand Down
3 changes: 3 additions & 0 deletions BrewPiLess/ArduinoFunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ extern "C"{









Expand Down
3 changes: 3 additions & 0 deletions BrewPiLess/AsyncServerSideEvent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,9 @@ size_t AsyncServerSideEventResponse::_ack(AsyncWebServerRequest *request, size_t









Expand Down
3 changes: 3 additions & 0 deletions BrewPiLess/AsyncServerSideEvent.h
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@ class AsyncServerSideEventResponse: public AsyncWebServerResponse {









Expand Down
3 changes: 3 additions & 0 deletions BrewPiLess/BrewKeeper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,9 @@ void makeTime(time_t timeInput, struct tm &tm){









Expand Down
3 changes: 3 additions & 0 deletions BrewPiLess/BrewKeeper.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ class BrewKeeper









Expand Down
3 changes: 3 additions & 0 deletions BrewPiLess/BrewLogger.h
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,9 @@ extern BrewLogger brewLogger;









Expand Down
9 changes: 8 additions & 1 deletion BrewPiLess/BrewPiLess.ino
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ R"END(
#define DEFAULT_INDEX_FILE "index.htm"

const char *public_list[]={
"/bwf.js"
"/bwf.js",
"/brewing.json"
};

const char *nocache_list[]={
Expand Down Expand Up @@ -300,6 +301,9 @@ public:
String data=request->getParam("data", true, false)->value();
//DBG_PRINTF("putline:%s\n",data.c_str());

if(data.startsWith("j") && !request->authenticate(username, password))
return request->requestAuthentication();

brewPi.putLine(data.c_str());
request->send(200);
}else if(request->method() == HTTP_GET && request->url() == CONTROL_CC_PATH){
Expand Down Expand Up @@ -1128,6 +1132,9 @@ void loop(void){









Expand Down
3 changes: 3 additions & 0 deletions BrewPiLess/BrewPiProxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,9 @@ void BrewPiProxy::getAllStatus(uint8_t *pState,uint8_t *pMode,float *pBeerTemp,f









Expand Down
3 changes: 3 additions & 0 deletions BrewPiLess/BrewPiProxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ class BrewPiProxy{









Expand Down
3 changes: 3 additions & 0 deletions BrewPiLess/Brewpi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,9 @@ void loop() {









Expand Down
3 changes: 3 additions & 0 deletions BrewPiLess/Brewpi.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ extern ValueActuator alarm;









Expand Down
3 changes: 3 additions & 0 deletions BrewPiLess/BrewpiStrings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ int8_t indexOf(const char* s, char c)









Expand Down
3 changes: 3 additions & 0 deletions BrewPiLess/BrewpiStrings.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ int8_t indexOf(const char* s, char c);









Expand Down
3 changes: 3 additions & 0 deletions BrewPiLess/Buzzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@ Buzzer buzzer;









Expand Down
3 changes: 3 additions & 0 deletions BrewPiLess/Buzzer.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ extern Buzzer buzzer;









Expand Down
3 changes: 3 additions & 0 deletions BrewPiLess/Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,9 @@









Expand Down
3 changes: 3 additions & 0 deletions BrewPiLess/ConfigDefault.h
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,9 @@









Expand Down
3 changes: 3 additions & 0 deletions BrewPiLess/DS2413.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,9 @@ bool DS2413::accessWrite(uint8_t b, uint8_t maxTries)









Expand Down
3 changes: 3 additions & 0 deletions BrewPiLess/DS2413.h
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,9 @@ class DS2413









Expand Down
3 changes: 3 additions & 0 deletions BrewPiLess/DallasTemperature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -972,6 +972,9 @@ void DallasTemperature::operator delete(void* p)









Expand Down
3 changes: 3 additions & 0 deletions BrewPiLess/DallasTemperature.h
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,9 @@ class DallasTemperature









Expand Down
3 changes: 3 additions & 0 deletions BrewPiLess/DataLogger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,9 @@ void DataLogger::getSettings(AsyncWebServerRequest *request)









Expand Down
3 changes: 3 additions & 0 deletions BrewPiLess/DataLogger.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ class DataLogger









Expand Down
3 changes: 3 additions & 0 deletions BrewPiLess/DeviceManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1056,6 +1056,9 @@ DeviceManager deviceManager;









Expand Down
3 changes: 3 additions & 0 deletions BrewPiLess/DeviceManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,9 @@ extern DeviceManager deviceManager;









Expand Down
3 changes: 3 additions & 0 deletions BrewPiLess/Display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ Display::~Display() { }









Expand Down
3 changes: 3 additions & 0 deletions BrewPiLess/Display.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ extern DisplayType DISPLAY_REF display;









Expand Down
3 changes: 3 additions & 0 deletions BrewPiLess/DisplayBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,9 @@ static const uint8_t LCD_FLAG_ALTERNATE_ROOM = 0x02;









Expand Down
3 changes: 3 additions & 0 deletions BrewPiLess/DisplayLcd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,9 @@ void LcdDisplay::printState(void){









Expand Down
3 changes: 3 additions & 0 deletions BrewPiLess/DisplayLcd.h
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ class LcdDisplay DISPLAY_SUPERCLASS









Expand Down
3 changes: 3 additions & 0 deletions BrewPiLess/ESP8266mDNS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1148,6 +1148,9 @@ MDNSResponder MDNS = MDNSResponder();









Expand Down
3 changes: 3 additions & 0 deletions BrewPiLess/ESP8266mDNS.h
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,9 @@ extern MDNSResponder MDNS;









Expand Down
Loading

0 comments on commit 2941d37

Please sign in to comment.