Ghost/ghost/admin/app/templates/reset.hbs
Kevin Ansfield a862cb6b6a Unsilenced deprecations that are no longer triggered
no issue

- cleaned up the `deprecation-workflow.js` file by removing deprecations that are no longer being triggered by our test suite or general app usage (if they are still triggered in untested areas it will be useful to see the logs)
- updated usages of `{{gh-text-field}}` to use it's `shouldFocus` attribute rather than directly overriding it's `autofocus` computed property
2020-01-09 17:20:13 +00:00

41 lines
2.0 KiB
Handlebars

<div class="gh-flow">
<div class="gh-flow-content-wrap">
<section class="gh-flow-content fade-in">
<form id="reset" class="gh-signin" method="post" novalidate="novalidate" {{action "submit" on="submit"}}>
{{#gh-form-group errors=this.errors hasValidated=this.hasValidated property="newPassword"}}
<span class="gh-input-icon gh-icon-lock">
{{svg-jar "lock"}}
{{gh-text-input
type="password"
name="newpassword"
placeholder="Password"
class="password"
autocorrect="off"
shouldFocus=true
value=(readonly this.newPassword)
input=(action (mut this.newPassword) value="target.value")}}
</span>
{{/gh-form-group}}
{{#gh-form-group errors=this.errors hasValidated=this.hasValidated property="ne2Password"}}
<span class="gh-input-icon gh-icon-lock">
{{svg-jar "lock"}}
{{gh-text-input
type="password"
name="ne2password"
placeholder="Confirm Password"
class="password"
autocorrect="off"
shouldFocus=true
value=(readonly this.ne2Password)
input=(action (mut this.ne2Password) value="target.value")}}
</span>
{{/gh-form-group}}
{{gh-task-button "Reset Password" task=this.resetPassword class="gh-btn gh-btn-blue gh-btn-block gh-btn-icon" type="submit" autoWidth="false"}}
</form>
<p class="main-error">{{this.flowErrors}}&nbsp;</p>
</section>
</div>
</div>