mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
fix su password check
This commit is contained in:
@@ -349,7 +349,7 @@ void Console::load_standard_commands(unsigned int context) {
|
|||||||
uint64_t now = uuid::get_uptime_ms();
|
uint64_t now = uuid::get_uptime_ms();
|
||||||
|
|
||||||
EMSESP::esp8266React.getSecuritySettingsService()->read([&](SecuritySettings & securitySettings) {
|
EMSESP::esp8266React.getSecuritySettingsService()->read([&](SecuritySettings & securitySettings) {
|
||||||
if (securitySettings.jwtSecret = password.c_str()) {
|
if (securitySettings.jwtSecret.equals(password.c_str())) {
|
||||||
become_admin(shell);
|
become_admin(shell);
|
||||||
} else {
|
} else {
|
||||||
shell.delay_until(now + INVALID_PASSWORD_DELAY_MS, [](Shell & shell) {
|
shell.delay_until(now + INVALID_PASSWORD_DELAY_MS, [](Shell & shell) {
|
||||||
|
|||||||
Reference in New Issue
Block a user