mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Server: encrypt password in database
This commit is contained in:
parent
f84a89f0e7
commit
26d7d31ba3
6 changed files with 74 additions and 15 deletions
|
@ -6,6 +6,8 @@ const path = require('path')
|
|||
// API version of our pod
|
||||
const API_VERSION = 'v1'
|
||||
|
||||
const BCRYPT_SALT_SIZE = 10
|
||||
|
||||
const CONFIG = {
|
||||
DATABASE: {
|
||||
DBNAME: 'peertube' + config.get('database.suffix'),
|
||||
|
@ -115,6 +117,7 @@ if (isTestInstance() === true) {
|
|||
|
||||
module.exports = {
|
||||
API_VERSION: API_VERSION,
|
||||
BCRYPT_SALT_SIZE: BCRYPT_SALT_SIZE,
|
||||
CONFIG: CONFIG,
|
||||
CONSTRAINTS_FIELDS: CONSTRAINTS_FIELDS,
|
||||
FRIEND_SCORE: FRIEND_SCORE,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue