mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
commit
845c4d1767
2 changed files with 3 additions and 1 deletions
|
@ -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')
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Add table
Reference in a new issue