0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Merge pull request #4628 from sebgie/issue#4624

Password change MU
This commit is contained in:
Hannah Wolfe 2014-12-12 10:07:34 +00:00
commit 845c4d1767
2 changed files with 3 additions and 1 deletions

View file

@ -52,6 +52,7 @@ var User = DS.Model.extend(NProgressSaveMixin, SelectiveSaveMixin, ValidationEng
type: 'PUT', type: 'PUT',
data: { data: {
password: [{ password: [{
user_id: this.get('id'),
oldPassword: this.get('password'), oldPassword: this.get('password'),
newPassword: this.get('newPassword'), newPassword: this.get('newPassword'),
ne2Password: this.get('ne2Password') ne2Password: this.get('ne2Password')

View file

@ -96,11 +96,12 @@
</fieldset> </fieldset>
<fieldset> <fieldset>
{{#unless view.isNotOwnProfile}}
<div class="form-group"> <div class="form-group">
<label for="user-password-old">Old Password</label> <label for="user-password-old">Old Password</label>
{{input value=user.password type="password" id="user-password-old"}} {{input value=user.password type="password" id="user-password-old"}}
</div> </div>
{{/unless}}
<div class="form-group"> <div class="form-group">
<label for="user-password-new">New Password</label> <label for="user-password-new">New Password</label>