mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix forgot password
This commit is contained in:
parent
bc454ba305
commit
c3a34422a5
3 changed files with 19 additions and 24 deletions
|
@ -14,24 +14,19 @@
|
|||
<h1>${HeaderForgotPassword}</h1>
|
||||
|
||||
<div>
|
||||
<label for="txtName" style="text-align: left;">${LabelUser}</label>
|
||||
<input type="text" id="txtName" />
|
||||
<paper-input type="text" id="txtName" label="${LabelUser}" autocomplete="off"></paper-input>
|
||||
<div class="fieldDescription">${LabelForgotPasswordUsernameHelp}</div>
|
||||
</div>
|
||||
|
||||
<br />
|
||||
|
||||
<p>
|
||||
<button type="submit" data-icon="check">
|
||||
${ButtonSubmit}
|
||||
<div>
|
||||
<button type="submit" data-role="none" class="clearButton">
|
||||
<paper-button raised class="submit block"><iron-icon icon="check"></iron-icon><span>${ButtonSubmit}</span></paper-button>
|
||||
</button>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<a data-role="button" data-icon="delete" href="login.html">
|
||||
${ButtonCancel}
|
||||
</a>
|
||||
</p>
|
||||
<paper-button raised class="cancel block btnCancel" onclick="history.back();"><iron-icon icon="close"></iron-icon><span>${ButtonCancel}</span></paper-button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
|
|
@ -13,22 +13,19 @@
|
|||
<div style="text-align: left;">
|
||||
<h2>${HeaderPasswordReset}</h2>
|
||||
|
||||
<label for="txtPin" style="text-align: left;">${LabelPasswordRecoveryPinCode}</label>
|
||||
<input type="text" id="txtPin" required="required" />
|
||||
<div>
|
||||
<paper-input type="text" id="txtPin" label="${LabelPasswordRecoveryPinCode}" autocomplete="off" required="required"></paper-input>
|
||||
</div>
|
||||
|
||||
<br />
|
||||
|
||||
<p>
|
||||
<button type="submit" data-icon="check">
|
||||
${ButtonSubmit}
|
||||
<div>
|
||||
<button type="submit" data-role="none" class="clearButton">
|
||||
<paper-button raised class="submit block"><iron-icon icon="check"></iron-icon><span>${ButtonSubmit}</span></paper-button>
|
||||
</button>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<a data-role="button" data-icon="delete" href="login.html">
|
||||
${ButtonCancel}
|
||||
</a>
|
||||
</p>
|
||||
<paper-button raised class="cancel block btnCancel" onclick="history.back();"><iron-icon icon="close"></iron-icon><span>${ButtonCancel}</span></paper-button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
|
|
@ -51,8 +51,11 @@
|
|||
return false;
|
||||
}
|
||||
|
||||
$(document).on('pageinit', '#forgotPasswordPinPage', function () {
|
||||
$('.forgotPasswordPinForm').off('submit', onSubmit).on('submit', onSubmit);
|
||||
$(document).on('pageinit', '.forgotPasswordPinPage', function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
$('form', page).off('submit', onSubmit).on('submit', onSubmit);
|
||||
});
|
||||
|
||||
})(window);
|
Loading…
Add table
Add a link
Reference in a new issue