remove email only login (#10030)
* feat: remove ACP option for email-only logins * feat: remove email-only login, upgrade script to fix configisekai-main
parent
79de48c57f
commit
01bd8a8694
@ -0,0 +1,16 @@
|
||||
'use strict';
|
||||
|
||||
const db = require('../../database');
|
||||
const meta = require('../../meta');
|
||||
|
||||
module.exports = {
|
||||
name: 'Re-enable username login',
|
||||
timestamp: Date.UTC(2021, 10, 23),
|
||||
method: async () => {
|
||||
const setting = await meta.config.allowLoginWith;
|
||||
|
||||
if (setting === 'email') {
|
||||
await meta.configs.set('allowLoginWith', 'username-email');
|
||||
}
|
||||
},
|
||||
};
|
Loading…
Reference in New Issue