mirror of https://gitee.com/bigwinds/arangodb
dont whine about --server.jwt-secret if it isn't used (#8546)
This commit is contained in:
parent
5711854531
commit
f2ab6da5f8
|
@ -185,7 +185,8 @@ void AuthenticationFeature::start() {
|
|||
TRI_ASSERT(isEnabled());
|
||||
|
||||
// If this is empty here, --server.jwt-secret was used
|
||||
if (_jwtSecretKeyfileProgramOption.empty()) {
|
||||
if (!_jwtSecretProgramOption.empty() &&
|
||||
_jwtSecretKeyfileProgramOption.empty()) {
|
||||
LOG_TOPIC(WARN, arangodb::Logger::AUTHENTICATION)
|
||||
<< "--server.jwt-secret is insecure. Use --server.jwt-secret-keyfile "
|
||||
"instead.";
|
||||
|
|
Loading…
Reference in New Issue