Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Commit 337e23c

Browse files
committed
feat: Generate user credentials for API nodes so they can connect to auth nodes in the auth process.
1 parent b7e286b commit 337e23c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/auth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class Auth {
100100
* Generate root user credentials for each core node if none is given
101101
*/
102102
async verifyUser (id, config) {
103-
if (id === 'core' && !config.provided.userSecret) {
103+
if (!config.provided.userSecret) {
104104
let grantAuthPerms = false
105105

106106
// Set auth db url if we're on the auth core (this will trigger users

lib/logger.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Log {
2121
let enabled = this.levels.slice(i, this.levels.length)
2222

2323
// Check if provided log level in enabled list
24-
return !!enabled.includes(level)
24+
return enabled.includes(level)
2525
}
2626

2727
/**

0 commit comments

Comments
 (0)