Make app passwords stronger

This commit is contained in:
Johannes Zellner
2020-02-26 17:19:24 +01:00
parent 6adc099455
commit 82aff74fc2

View File

@@ -710,7 +710,7 @@ function addAppPassword(userId, identifier, name, callback) {
if (identifier.length < 1) return callback(new BoxError(BoxError.BAD_FIELD, 'identifier must be atleast 1 char'));
const password = hat(8 * 4);
const password = hat(16 * 4);
const hashedPassword = crypto.createHash('sha256').update(password).digest('base64');
var appPassword = {