From f74ce4b8651984a18db2f07345e8a51f4dd8a03b Mon Sep 17 00:00:00 2001 From: Isaac Abadi Date: Sat, 26 Dec 2020 15:35:13 -0500 Subject: [PATCH] Fixed bug that caused the UI to fail loading after creating a user in multi-user mode --- backend/authentication/auth.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/backend/authentication/auth.js b/backend/authentication/auth.js index e5f04ec..442d7fa 100644 --- a/backend/authentication/auth.js +++ b/backend/authentication/auth.js @@ -536,14 +536,8 @@ function generateUserObject(userid, username, hash, auth_method = 'internal') { name: username, uid: userid, passhash: auth_method === 'internal' ? hash : null, - files: { - audio: [], - video: [] - }, - playlists: { - audio: [], - video: [] - }, + files: [], + playlists: [], subscriptions: [], created: Date.now(), role: userid === 'admin' && auth_method === 'internal' ? 'admin' : 'user',