mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
completed auth database
This commit is contained in:
parent
3719b9ad8e
commit
10414ce9ac
9 changed files with 135 additions and 101 deletions
|
@ -5,25 +5,11 @@
|
|||
ApiClient.getServerConfiguration().done(function (config) {
|
||||
|
||||
config.IsStartupWizardCompleted = true;
|
||||
|
||||
|
||||
ApiClient.updateServerConfiguration(config).done(function () {
|
||||
|
||||
ApiClient.getUsers().done(function (users) {
|
||||
|
||||
for (var i = 0, length = users.length; i < length; i++) {
|
||||
|
||||
if (users[i].Configuration.IsAdministrator) {
|
||||
Dashboard.setCurrentUser(users[i].Id);
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Dashboard.navigate('dashboard.html');
|
||||
});
|
||||
Dashboard.navigate('dashboard.html');
|
||||
});
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue