mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-06-15 22:00:18 +02:00
feat(users): use displayName alternative first name and last name
This commit is contained in:
@@ -22,15 +22,16 @@
|
||||
return false;
|
||||
}
|
||||
|
||||
vm.user.lastName = '';
|
||||
var user = new UsersService(vm.user);
|
||||
|
||||
user.$update(function (response) {
|
||||
$scope.$broadcast('show-errors-reset', 'vm.userForm');
|
||||
|
||||
Notification.success({ message: '<i class="glyphicon glyphicon-ok"></i> Edit profile successful!' });
|
||||
Notification.success({message: '<i class="glyphicon glyphicon-ok"></i> Edit profile successful!'});
|
||||
Authentication.user = response;
|
||||
}, function (response) {
|
||||
Notification.error({ message: response.data.message, title: '<i class="glyphicon glyphicon-remove"></i> Edit profile failed!' });
|
||||
Notification.error({message: response.data.message, title: '<i class="glyphicon glyphicon-remove"></i> Edit profile failed!'});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user