fix: new install local auth not enabled (#2375)
This commit is contained in:
		
							
								
								
									
										6
									
								
								server/db/migrations-sqlite/2.5.118.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								server/db/migrations-sqlite/2.5.118.js
									
									
									
									
									
										Normal 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 => { } | ||||||
							
								
								
									
										6
									
								
								server/db/migrations/2.5.118.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								server/db/migrations/2.5.118.js
									
									
									
									
									
										Normal 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 => { } | ||||||
| @@ -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, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user