summaryrefslogtreecommitdiffstats
path: root/src/controller.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/controller.c')
-rw-r--r--src/controller.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/controller.c b/src/controller.c
index 70d7a7919..9b019afdd 100644
--- a/src/controller.c
+++ b/src/controller.c
@@ -168,6 +168,9 @@ rspamd_controller_check_password (struct rspamd_http_connection_entry *entry,
msg_info ("using password as enable_password for a privileged command");
check = ctx->password;
}
+ else {
+ check = ctx->enable_password;
+ }
if (check != NULL) {
if (password == NULL || strcmp (password, check) != 0) {
msg_info ("incorrect or absent password has been specified");