1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

fixes for new user settings

This commit is contained in:
Luke Pulverenti 2013-07-08 15:31:45 -04:00
parent d423d7e446
commit 04142091d9
4 changed files with 15 additions and 5 deletions

View file

@ -17,6 +17,7 @@
}).length || !users.length;
// Always display users on localhost, just in case they forgot
showManualForm &= window.location.toString().toLowerCase().indexOf('localhost') == -1;
if (showManualForm) {
@ -69,9 +70,15 @@
ApiClient.authenticateUserByName(username, password).done(function (result) {
Dashboard.setCurrentUser(result.User.Id);
var user = result.User;
Dashboard.setCurrentUser(user.Id);
window.location = "index.html?u=" + result.User.Id;
if (user.Configuration.IsAdministrator) {
window.location = "dashboard.html?u=" + user.Id;
} else {
window.location = "index.html?u=" + user.Id;
}
}).fail(function () {