Skip to content

Commit 698fb8e

Browse files
committed
Remove bcrypt hashing from server password configuration
1 parent 6af4eb6 commit 698fb8e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import dotenv from "dotenv"
2-
import bcrypt from "bcrypt";
32

43
dotenv.config({ quiet: true });
54

@@ -94,6 +93,6 @@ export default {
9493
// Videos server options
9594
server_enabled: process.env.SERVER_ENABLED ? parseBoolean(process.env.SERVER_ENABLED) : false,
9695
server_username: process.env.SERVER_USERNAME ? process.env.SERVER_USERNAME : 'admin',
97-
server_password: bcrypt.hashSync(process.env.SERVER_PASSWORD ? process.env.SERVER_PASSWORD : 'admin', 10),
96+
server_password: process.env.SERVER_PASSWORD ? process.env.SERVER_PASSWORD : 'admin',
9897
server_port: parseInt(process.env.SERVER_PORT ? process.env.SERVER_PORT : '8080'),
9998
}

0 commit comments

Comments
 (0)