Add fallback to bcryptjs, make canvas optional

This commit is contained in:
TheArcaneBrony committed 2022-09-04 10:48:54 +02:00
1 parent 7d936efb2f
commit c0e00d04c0
5 files changed
+3 -6

No files matched your search

-1
View File
@@ -1,6 +1,5 @@
import { route } from "@fosscord/api";
import { HTTPError, Member, User } from "@fosscord/util";
import bcrypt from "bcrypt";
import { Request, Response, Router } from "express";
let bcrypt: any;
-1
View File
@@ -1,6 +1,5 @@
import { route } from "@fosscord/api";
import { User } from "@fosscord/util";
import bcrypt from "bcrypt";
import { Request, Response, Router } from "express";
let bcrypt: any;
-1
View File
@@ -12,7 +12,6 @@ import {
UserModifySchema,
UserUpdateEvent
} from "@fosscord/util";
import bcrypt from "bcrypt";
import { Request, Response, Router } from "express";
let bcrypt: any;
-1
View File
@@ -1,5 +1,4 @@
import { BackupCode, Config, FieldErrors, generateMfaBackupCodes, MfaCodesSchema, User } from "@fosscord/util";
import bcrypt from "bcrypt";
import { Request, Response, Router } from "express";
import { route } from "../../../..";
+3 -2
View File
@@ -1,5 +1,6 @@
import { Plugin } from "util/plugin";
import * as example_plugin from "./example-plugin/TestPlugin";
export const PluginIndex: any = {
"example-plugin": new example_plugin.default()
};
"example-plugin": new example_plugin.default(),
};