mirror of
https://github.com/wahyd4/harbor.git
synced 2026-08-09 12:56:43 +10:00
Update account-setting.controller.js
remove password check in updateUser(). - && angular.isDefined(user.password)
This commit is contained in:
@@ -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 @@
|
||||
|
||||
}
|
||||
|
||||
})();
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user