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

#85 - Password page should indicate if one exists

This commit is contained in:
Luke Pulverenti 2013-03-26 23:01:13 -04:00
parent 0fb6b9a111
commit 686e5cfa86
2 changed files with 6 additions and 1 deletions

View file

@ -15,8 +15,12 @@
if (user.HasPassword) {
$('#btnResetPassword', page).show();
$('#fldCurrentPassword', page).show();
$('h3', page).html('Update Password').show();
} else {
$('#btnResetPassword', page).hide();
$('#fldCurrentPassword', page).hide();
$('h3', page).html('Create Password').show();
}
});

View file

@ -14,9 +14,10 @@
<a href="#" data-role="button" class="ui-btn-active">Password</a>
<a href="#" data-role="button" onclick="Dashboard.navigate('library.html', true);">Media Library</a>
</div>
<h3 style="display: none;">Create Password</h3>
<form id="updatePasswordForm">
<ul data-role="listview" class="ulForm">
<li>
<li id="fldCurrentPassword" style="display: none;">
<label for="txtCurrentPassword">Current password: </label>
<input type="password" id="txtCurrentPassword" name="txtCurrentPassword" />
</li>