mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-12 16:14:25 +03:00
3a72c3ca02
closes #2412 - Updated the reset route to accept token parameter and hand it over to the controller. - Added ResetController which handles the submit action and the button disabled state. - Added reset action to the user model to handle ajax request. - Updated reset template. - Added fixtures to test reset API action. - Fixed password variable names to camel cased style (e.g. newpassword -> newPassword).
12 lines
657 B
Handlebars
12 lines
657 B
Handlebars
<section class="reset-box js-reset-box">
|
|
<form id="reset" class="reset-form" method="post" novalidate="novalidate" {{action "submit" on="submit"}}>
|
|
<div class="password-wrap">
|
|
{{input value=passwords.newPassword class="password" type="password" placeholder="Password" name="newpassword" }}
|
|
</div>
|
|
<div class="password-wrap">
|
|
{{input value=passwords.ne2Password class="password" type="password" placeholder="Confirm Password" name="ne2password" }}
|
|
</div>
|
|
<button class="button-save" type="submit" {{bind-attr disabled='submitButtonDisabled'}}>Reset Password</button>
|
|
</form>
|
|
</section>
|