jwt: do not load token_verification module with disabled authentication

This commit is contained in:
Paul Tiedtke 2020-04-29 04:08:05 +02:00 committed by Saúl Ibarra Corretgé
parent b0d76a2fc3
commit 4fa50b9f08
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ Component "{{ .Env.XMPP_MUC_DOMAIN }}" "muc"
{{ if .Env.XMPP_MUC_MODULES }}
"{{ join "\";\n\"" (splitList "," .Env.XMPP_MUC_MODULES) }}";
{{ end }}
{{ if eq $AUTH_TYPE "jwt" }}
{{ if and $ENABLE_AUTH (eq $AUTH_TYPE "jwt") }}
"{{ $JWT_TOKEN_AUTH_MODULE }}";
{{ end }}
}