mirror of
https://github.com/wekan/wekan.git
synced 2026-02-13 03:34:20 +01:00
Replace Npm.require(fs) with ES import
This commit is contained in:
parent
49a272d6c0
commit
81c81ff4aa
1 changed files with 1 additions and 1 deletions
|
|
@ -1,13 +1,13 @@
|
|||
import {addGroupsWithAttributes, addEmail, changeFullname, changeUsername} from './loginHandler';
|
||||
import { fetch, Headers } from 'meteor/fetch';
|
||||
import https from 'https';
|
||||
import fs from 'fs';
|
||||
|
||||
Oidc = {};
|
||||
httpCa = false;
|
||||
|
||||
if (process.env.OAUTH2_CA_CERT !== undefined) {
|
||||
try {
|
||||
const fs = Npm.require('fs');
|
||||
if (fs.existsSync(process.env.OAUTH2_CA_CERT)) {
|
||||
httpCa = fs.readFileSync(process.env.OAUTH2_CA_CERT);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue