Merge pull request #2713 from bluewave-labs/hotfix/crypto
fix crypto dependency
This commit is contained in:
1 file changed
+1
-1
@@ -36,7 +36,7 @@ class UserService {
|
|||||||
user.teamId = invitedUser.teamId;
|
user.teamId = invitedUser.teamId;
|
||||||
} else {
|
} else {
|
||||||
// This is the first account, create JWT secret to use if one is not supplied by env
|
// This is the first account, create JWT secret to use if one is not supplied by env
|
||||||
const jwtSecret = crypto.randomBytes(64).toString("hex");
|
const jwtSecret = this.crypto.randomBytes(64).toString("hex");
|
||||||
await this.db.updateAppSettings({ jwtSecret });
|
await this.db.updateAppSettings({ jwtSecret });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user