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:
parent
0fb6b9a111
commit
686e5cfa86
2 changed files with 6 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
});
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue