Update account-setting.controller.js

remove password check in updateUser().

- && angular.isDefined(user.password)
This commit is contained in:
yhua123 2016-07-06 14:09:20 +08:00 committed by GitHub
parent db0c079b82
commit 21b3f5d48e

View File

@ -58,8 +58,7 @@
function updateUser(user) {
vm.confirmOnly = true;
vm.action = vm.confirm;
if(user && angular.isDefined(user.username) && angular.isDefined(user.password) &&
angular.isDefined(user.realname)) {
if(user && angular.isDefined(user.username) && angular.isDefined(user.realname)) {
UpdateUserService(userId, user)
.success(updateUserSuccess)
.error(updateUserFailed);
@ -92,4 +91,4 @@
}
})();
})();