浏览代码

[Minor] Try to fix passwords case in the controller

Issue: #4186
tags/3.3
Vsevolod Stakhov 2 年前
父节点
当前提交
57c1030d1f
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 1 次插入13 次删除
  1. 1
    13
      src/controller.c

+ 1
- 13
src/controller.c 查看文件

@@ -653,7 +653,7 @@ rspamd_controller_check_password (struct rspamd_http_connection_entry *entry,
check_normal = FALSE;
}

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

if (!rspamd_is_encrypted_password (check, &pbkdf)) {
@@ -670,21 +670,9 @@ rspamd_controller_check_password (struct rspamd_http_connection_entry *entry,
password,
check, pbkdf, TRUE);
}

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

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

正在加载...
取消
保存