Display and send usernames instead of the email address

This commit is contained in:
Girish Ramakrishnan
2017-06-21 19:34:55 -07:00
parent 845d386478
commit 79541a68a5

View File

@@ -129,7 +129,7 @@ angular.module('Application').controller('EmailController', ['$scope', '$locatio
if (error) return console.error('Unable to get user listing.', error);
// only allow users with a Cloudron email address
$scope.catchall.availableAddresses = result.filter(function (u) { return !!u.email; }).map(function (u) { return u.email; });
$scope.catchall.availableAddresses = result.filter(function (u) { return !!u.email; }).map(function (u) { return u.username; });
});
}