Browse Source
Merge pull request #11800 from abpframework/liangshiwei/concurrency
Fix Optimistic concurrency error
pull/11816/head
Gizem Mutu Kurt
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
10 additions and
4 deletions
-
modules/account/src/Volo.Abp.Account.Web/Pages/Account/Components/ProfileManagementGroup/Password/Default.js
-
modules/account/src/Volo.Abp.Account.Web/Pages/Account/Components/ProfileManagementGroup/PersonalInfo/Default.js
|
|
@ -25,6 +25,7 @@ |
|
|
|
|
|
|
|
|
volo.abp.account.profile.changePassword(input).then(function (result) { |
|
|
volo.abp.account.profile.changePassword(input).then(function (result) { |
|
|
abp.message.success(l('PasswordChanged')); |
|
|
abp.message.success(l('PasswordChanged')); |
|
|
|
|
|
abp.event.trigger('passwordChanged'); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
|
|
|
@ -13,11 +13,16 @@ |
|
|
|
|
|
|
|
|
volo.abp.account.profile.update(input).then(function (result) { |
|
|
volo.abp.account.profile.update(input).then(function (result) { |
|
|
abp.notify.success(l('PersonalSettingsSaved')); |
|
|
abp.notify.success(l('PersonalSettingsSaved')); |
|
|
|
|
|
updateConcurrencyStamp(); |
|
|
volo.abp.account.profile.get().then(function(profile){ |
|
|
|
|
|
$("#ConcurrencyStamp").val(profile.concurrencyStamp); |
|
|
|
|
|
}); |
|
|
|
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
abp.event.on('passwordChanged', updateConcurrencyStamp); |
|
|
|
|
|
|
|
|
|
|
|
function updateConcurrencyStamp(){ |
|
|
|
|
|
volo.abp.account.profile.get().then(function(profile){ |
|
|
|
|
|
$("#ConcurrencyStamp").val(profile.concurrencyStamp); |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
})(jQuery); |
|
|
})(jQuery); |
|
|
|