relay: remove hardcoding of providers
This commit is contained in:
@@ -41,8 +41,16 @@ angular.module('Application').controller('EmailController', ['$scope', '$locatio
|
||||
$('.modal').modal('hide');
|
||||
};
|
||||
|
||||
$scope.isProvider = function (provider) {
|
||||
return $scope.mailRelay.relay.provider === provider;
|
||||
$scope.usesTokenAuth = function (provider) {
|
||||
return provider === 'postmark-smtp' || provider === 'sendgrid-smtp';
|
||||
};
|
||||
|
||||
$scope.usesExternalServer = function (provider) {
|
||||
return provider !== 'cloudron-smtp' && provider !== 'noop';
|
||||
};
|
||||
|
||||
$scope.usesPasswordAuth = function (provider) {
|
||||
return provider !== 'postmark-smtp' && provider !== 'sendgrid-smtp';
|
||||
};
|
||||
|
||||
$scope.catchall = {
|
||||
|
||||
Reference in New Issue
Block a user