Browse Source

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

pull/2390/head
NGPixel 4 years ago
parent
commit
794ecc6ef6
3 changed files with 13 additions and 0 deletions
  1. 6
      server/db/migrations-sqlite/2.5.118.js
  2. 6
      server/db/migrations/2.5.118.js
  3. 1
      server/setup.js

6
server/db/migrations-sqlite/2.5.118.js

@ -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 => { }

6
server/db/migrations/2.5.118.js

@ -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 => { }

1
server/setup.js

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

Loading…
Cancel
Save