Skip to content

Commit

Permalink
fix: new install local auth not enabled (#2375)
Browse files Browse the repository at this point in the history
  • Loading branch information
NGPixel committed Sep 7, 2020
1 parent 7fdf8ab commit 794ecc6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions server/db/migrations-sqlite/2.5.118.js
Original file line number Diff line number Diff line change
@@ -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 changes: 6 additions & 0 deletions server/db/migrations/2.5.118.js
Original file line number Diff line number Diff line change
@@ -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 change: 1 addition & 0 deletions server/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ module.exports = () => {
key: 'local',
config: {},
selfRegistration: false,
isEnabled: true,
domainWhitelist: {v: []},
autoEnrollGroups: {v: []},
order: 0,
Expand Down

0 comments on commit 794ecc6

Please sign in to comment.