mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-03 00:10:40 +08:00
fix compilation error with authentication and esp8266
This commit is contained in:
parent
c706f44229
commit
d4d2482fd1
@ -41,7 +41,7 @@ void dateTime (uint16_t* date, uint16_t* dtime)
|
||||
*dtime = FAT_TIME (tmstruct.tm_hour, tmstruct.tm_min, tmstruct.tm_sec);
|
||||
}
|
||||
|
||||
time_t getDateTimeFile(File & filehandle)
|
||||
time_t getDateTimeFile(sdfat::File & filehandle)
|
||||
{
|
||||
static time_t dt = 0;
|
||||
struct tm timefile;
|
||||
|
@ -311,7 +311,7 @@ bool FtpServer::isUser(const char * user)
|
||||
log_esp3d("Check User");
|
||||
_currentUser = "";
|
||||
#ifdef AUTHENTICATION_FEATURE
|
||||
if ((user != nullptr) && ((strcmp(user, DEFAULT_ADMIN_LOGIN) == 0) || (strcmp(user, DEFAULT_USER_LOGIN) == 0)) {
|
||||
if ((user != nullptr) && ((strcmp(user, DEFAULT_ADMIN_LOGIN) == 0) || (strcmp(user, DEFAULT_USER_LOGIN) == 0))) {
|
||||
_currentUser = user;
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user