mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
fix type in setAuthentication
This commit is contained in:
@@ -446,6 +446,11 @@ class AsyncWebHandler {
|
|||||||
_filter = fn;
|
_filter = fn;
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
AsyncWebHandler & setAuthentication(const String & username, const String & password) {
|
||||||
|
_username = username;
|
||||||
|
_password = password;
|
||||||
|
return *this;
|
||||||
|
};
|
||||||
AsyncWebHandler & setAuthentication(const char * username, const char * password) {
|
AsyncWebHandler & setAuthentication(const char * username, const char * password) {
|
||||||
_username = String(username);
|
_username = String(username);
|
||||||
_password = String(password);
|
_password = String(password);
|
||||||
|
|||||||
Reference in New Issue
Block a user