Skip to content

Node.js based forum software built for the modern web

375 B
Raw Blame
'use strict';

const db = require('../../database');

module.exports = {
	name: 'Revising minimum password strength to 1 (from 0)',
	timestamp: Date.UTC(2018, 1, 21),
	method: async function () {
		const strength = await db.getObjectField('config', 'minimumPasswordStrength');
		if (!strength) {
			await db.setObjectField('config', 'minimumPasswordStrength', 1);
		}
	},
};