mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-27 13:13:50 +00:00 
			
		
		
		
	fix
This commit is contained in:
		| @@ -22,7 +22,7 @@ class TextTraits { | ||||
|   int get_max_length() const { return this->max_length_; } | ||||
|  | ||||
|   // Set/get the pattern. | ||||
|   void set_pattern(const std::string &pattern) { this->pattern_ = std::move(pattern); } | ||||
|   void set_pattern(const std::string &pattern) { this->pattern_ = pattern; } | ||||
|   std::string get_pattern() const { return this->pattern_; } | ||||
|   StringRef get_pattern_ref() const { return StringRef(this->pattern_); } | ||||
|  | ||||
|   | ||||
| @@ -131,8 +131,8 @@ class WebServerBase : public Component { | ||||
|   float get_setup_priority() const override; | ||||
|  | ||||
| #ifdef USE_WEBSERVER_AUTH | ||||
|   void set_auth_username(const std::string &auth_username) { credentials_.username = std::move(auth_username); } | ||||
|   void set_auth_password(const std::string &auth_password) { credentials_.password = std::move(auth_password); } | ||||
|   void set_auth_username(const std::string &auth_username) { credentials_.username = auth_username; } | ||||
|   void set_auth_password(const std::string &auth_password) { credentials_.password = auth_password; } | ||||
| #endif | ||||
|  | ||||
|   void add_handler(AsyncWebHandler *handler); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user