Browse Source

[Minor] Try to fix passwords case in the controller

Issue: #4186
tags/3.3
Vsevolod Stakhov 2 years ago
parent
commit
57c1030d1f
No account linked to committer's email address
1 changed files with 1 additions and 13 deletions
  1. 1
    13
      src/controller.c

+ 1
- 13
src/controller.c View File

check_normal = FALSE; check_normal = FALSE;
} }


if (ctx->enable_password != NULL) {
if (!check_normal && ctx->enable_password != NULL) {
check = ctx->enable_password; check = ctx->enable_password;


if (!rspamd_is_encrypted_password (check, &pbkdf)) { if (!rspamd_is_encrypted_password (check, &pbkdf)) {
password, password,
check, pbkdf, TRUE); check, pbkdf, TRUE);
} }

if (check_enable) {
session->is_enable = TRUE;
}
} }
else { else {
check_enable = FALSE; check_enable = FALSE;

if (check_normal) {
/*
* If no enable password is specified use normal password as
* enable password
*/
session->is_enable = TRUE;
}
} }
} }
} }

Loading…
Cancel
Save