mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-08 04:31:30 +03:00
Code cleanup
Default user password after rebuild is now 'password'
This commit is contained in:
@@ -280,7 +280,6 @@ async function autoDeleteFiles(data) {
|
||||
async function rebuildDB() {
|
||||
await db_api.backupDB();
|
||||
let subs_to_add = await guessSubscriptions(false);
|
||||
let subs_to_add = await guessSubscriptions(true);
|
||||
subs_to_add = subs_to_add.concat(await guessSubscriptions(true));
|
||||
const users_to_add = await guessUsers();
|
||||
for (const user_to_add of users_to_add) {
|
||||
@@ -288,7 +287,7 @@ async function rebuildDB() {
|
||||
|
||||
const user_exists = await db_api.getRecord('users', {uid: user_to_add});
|
||||
if (!user_exists) {
|
||||
await auth_api.registerUser(user_to_add, user_to_add, '');
|
||||
await auth_api.registerUser(user_to_add, user_to_add, 'password');
|
||||
logger.info(`Regenerated user ${user_to_add}`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user