|
|
@ -536,14 +536,8 @@ function generateUserObject(userid, username, hash, auth_method = 'internal') {
|
|
|
|
name: username,
|
|
|
|
name: username,
|
|
|
|
uid: userid,
|
|
|
|
uid: userid,
|
|
|
|
passhash: auth_method === 'internal' ? hash : null,
|
|
|
|
passhash: auth_method === 'internal' ? hash : null,
|
|
|
|
files: {
|
|
|
|
files: [],
|
|
|
|
audio: [],
|
|
|
|
playlists: [],
|
|
|
|
video: []
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
playlists: {
|
|
|
|
|
|
|
|
audio: [],
|
|
|
|
|
|
|
|
video: []
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
subscriptions: [],
|
|
|
|
subscriptions: [],
|
|
|
|
created: Date.now(),
|
|
|
|
created: Date.now(),
|
|
|
|
role: userid === 'admin' && auth_method === 'internal' ? 'admin' : 'user',
|
|
|
|
role: userid === 'admin' && auth_method === 'internal' ? 'admin' : 'user',
|
|
|
|