fix: new install local auth not enabled (#2375)

This commit is contained in:
NGPixel 2020-09-07 14:48:09 -04:00
parent 7fdf8ab3f9
commit 794ecc6ef6
3 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,6 @@
exports.up = async knex => {
// -> Fix 2.5.117 new installations without isEnabled on local auth (#2382)
await knex('authentication').where('key', 'local').update({ isEnabled: true })
}
exports.down = knex => { }

View File

@ -0,0 +1,6 @@
exports.up = async knex => {
// -> Fix 2.5.117 new installations without isEnabled on local auth (#2382)
await knex('authentication').where('key', 'local').update({ isEnabled: true })
}
exports.down = knex => { }

View File

@ -258,6 +258,7 @@ module.exports = () => {
key: 'local', key: 'local',
config: {}, config: {},
selfRegistration: false, selfRegistration: false,
isEnabled: true,
domainWhitelist: {v: []}, domainWhitelist: {v: []},
autoEnrollGroups: {v: []}, autoEnrollGroups: {v: []},
order: 0, order: 0,