fix su password check

This commit is contained in:
proddy
2020-07-16 16:20:26 +02:00
parent 0f5bc4754e
commit a9b56dce4d

View File

@@ -349,7 +349,7 @@ void Console::load_standard_commands(unsigned int context) {
uint64_t now = uuid::get_uptime_ms();
EMSESP::esp8266React.getSecuritySettingsService()->read([&](SecuritySettings & securitySettings) {
if (securitySettings.jwtSecret = password.c_str()) {
if (securitySettings.jwtSecret.equals(password.c_str())) {
become_admin(shell);
} else {
shell.delay_until(now + INVALID_PASSWORD_DELAY_MS, [](Shell & shell) {