Add button in manager to send a test mail (#2293)
This commit is contained in:
parent
99dc799534
commit
022ecdf6f7
|
@ -155,6 +155,7 @@ site/htdocs/static/forms/select.html
|
|||
site/htdocs/static/forms/sfExtra.html
|
||||
site/htdocs/static/forms/sfExtraContainer.html
|
||||
site/htdocs/static/forms/simpleInputContainer.html
|
||||
site/htdocs/static/forms/SMTP.html
|
||||
site/htdocs/static/forms/text.html
|
||||
site/htdocs/static/forms/trool.html
|
||||
site/htdocs/static/forms/virtualHost.html
|
||||
|
|
|
@ -976,6 +976,7 @@ sub tree {
|
|||
{
|
||||
title => 'SMTP',
|
||||
help => 'smtp.html',
|
||||
form => 'SMTP',
|
||||
nodes => [
|
||||
'mailSessionKey',
|
||||
'SMTPServer',
|
||||
|
|
|
@ -661,6 +661,35 @@ llapp.controller 'TreeCtrl', [
|
|||
# virtualHost
|
||||
return if node.type and node.type.match /^(?:s(?:aml(?:(?:ID|S)PMetaDataNod|Attribut)e|fExtra)|(?:(?:cmbMod|r)ul|authChoic)e|(?:virtualHos|keyTex)t|menu(?:App|Cat))$/ then true else false
|
||||
|
||||
# Send test Email
|
||||
$scope.sendTestMail = ->
|
||||
$scope.message =
|
||||
title: 'sendTestMail'
|
||||
field: 'dest'
|
||||
$scope.showModal('prompt.html').then ->
|
||||
n= $scope.result
|
||||
$scope.waiting = true
|
||||
dest = $scope.result
|
||||
$http.post("#{window.confPrefix}/sendTestMail", {"dest": dest}).then (response) ->
|
||||
success = response.data.success
|
||||
error = response.data.error
|
||||
$scope.waiting = false
|
||||
if success
|
||||
$scope.message =
|
||||
title: 'ok'
|
||||
message: '__sendTestMailSuccess__'
|
||||
items: []
|
||||
else
|
||||
$scope.message =
|
||||
title: 'error'
|
||||
message: error
|
||||
items: []
|
||||
|
||||
$scope.showModal 'message.html'
|
||||
, readError
|
||||
, ->
|
||||
console.log('Error sending test email')
|
||||
|
||||
# RSA keys generation
|
||||
$scope.newRSAKey = ->
|
||||
$scope.showModal('password.html').then ->
|
||||
|
|
12
lemonldap-ng-manager/site/htdocs/static/forms/SMTP.html
Normal file
12
lemonldap-ng-manager/site/htdocs/static/forms/SMTP.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">{{translateTitle(currentNode)}}</h3>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/menu">
|
||||
[{
|
||||
"title": "sendTestMail",
|
||||
"action": "sendTestMail",
|
||||
"icon": "envelope"
|
||||
}]
|
||||
</script>
|
|
@ -805,6 +805,42 @@ This file contains:
|
|||
return false;
|
||||
}
|
||||
};
|
||||
$scope.sendTestMail = function() {
|
||||
$scope.message = {
|
||||
title: 'sendTestMail',
|
||||
field: 'dest'
|
||||
};
|
||||
return $scope.showModal('prompt.html').then(function() {
|
||||
var dest, n;
|
||||
n = $scope.result;
|
||||
$scope.waiting = true;
|
||||
dest = $scope.result;
|
||||
return $http.post(window.confPrefix + "/sendTestMail", {
|
||||
"dest": dest
|
||||
}).then(function(response) {
|
||||
var error, success;
|
||||
success = response.data.success;
|
||||
error = response.data.error;
|
||||
$scope.waiting = false;
|
||||
if (success) {
|
||||
$scope.message = {
|
||||
title: 'ok',
|
||||
message: '__sendTestMailSuccess__',
|
||||
items: []
|
||||
};
|
||||
} else {
|
||||
$scope.message = {
|
||||
title: 'error',
|
||||
message: error,
|
||||
items: []
|
||||
};
|
||||
}
|
||||
return $scope.showModal('message.html');
|
||||
}, readError);
|
||||
}, function() {
|
||||
return console.log('Error sending test email');
|
||||
});
|
||||
};
|
||||
$scope.newRSAKey = function() {
|
||||
return $scope.showModal('password.html').then(function() {
|
||||
var currentNode, password;
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -272,6 +272,7 @@
|
|||
"demoExportedVars":"المتغيرات المصدرة",
|
||||
"demoParams":"إثبات المعايير",
|
||||
"description":"التفاصيل",
|
||||
"dest":"Recipient",
|
||||
"diffViewer":"المشاهد المختلف",
|
||||
"diffWithPrevious":"الفرق مع السابق",
|
||||
"disabled":"معطلة",
|
||||
|
@ -841,6 +842,8 @@
|
|||
"secondFactors":"Second factors",
|
||||
"securedCookie":"ملفات تعريف الارتباط المضمونة (سسل)",
|
||||
"security":"الحماية",
|
||||
"sendTestMail":"Send test email",
|
||||
"sendTestMailSuccess":"Test email successfully sent",
|
||||
"serverError":"خطأ في جهاز الخادم",
|
||||
"session":"جلسة",
|
||||
"sessions":"الجلسات",
|
||||
|
@ -1152,4 +1155,4 @@
|
|||
"samlRelayStateTimeout":"تناوب حالة مهلة الجلسة ",
|
||||
"samlUseQueryStringSpecific":"استخدام أسلوب query_string المعين",
|
||||
"samlOverrideIDPEntityID":"Override Entity ID when acting as IDP"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -272,6 +272,7 @@
|
|||
"demoExportedVars":"Exported variables",
|
||||
"demoParams":"Demonstration parameters",
|
||||
"description":"Beschreibung",
|
||||
"dest":"Recipient",
|
||||
"diffViewer":"Difference viewer",
|
||||
"diffWithPrevious":"difference with previous",
|
||||
"disabled":"Disabled",
|
||||
|
@ -841,6 +842,8 @@
|
|||
"secondFactors":"Second factors",
|
||||
"securedCookie":"Secured Cookie (SSL)",
|
||||
"security":"Security",
|
||||
"sendTestMail":"Send test email",
|
||||
"sendTestMailSuccess":"Test email successfully sent",
|
||||
"serverError":"Server error",
|
||||
"session":"session",
|
||||
"sessions":"Sessions",
|
||||
|
@ -1152,4 +1155,4 @@
|
|||
"samlRelayStateTimeout":"RelayState session timeout",
|
||||
"samlUseQueryStringSpecific":"Use specific query_string method",
|
||||
"samlOverrideIDPEntityID":"Override Entity ID when acting as IDP"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -272,6 +272,7 @@
|
|||
"demoExportedVars":"Exported variables",
|
||||
"demoParams":"Demonstration parameters",
|
||||
"description":"Description",
|
||||
"dest":"Recipient",
|
||||
"diffViewer":"Difference viewer",
|
||||
"diffWithPrevious":"difference with previous",
|
||||
"disabled":"Disabled",
|
||||
|
@ -841,6 +842,8 @@
|
|||
"secondFactors":"Second factors",
|
||||
"securedCookie":"Secured Cookie (SSL)",
|
||||
"security":"Security",
|
||||
"sendTestMail":"Send test email",
|
||||
"sendTestMailSuccess":"Test email successfully sent",
|
||||
"serverError":"Server error",
|
||||
"session":"session",
|
||||
"sessions":"Sessions",
|
||||
|
|
|
@ -272,6 +272,7 @@
|
|||
"demoExportedVars":"Variables exportées",
|
||||
"demoParams":"Paramètres démonstration",
|
||||
"description":"Description",
|
||||
"dest":"Destinataire",
|
||||
"diffViewer":"Visualisateur de différence",
|
||||
"diffWithPrevious":"différence avec la précédente",
|
||||
"disabled":"Désactivé",
|
||||
|
@ -841,6 +842,8 @@
|
|||
"secondFactors":"Seconds facteurs",
|
||||
"securedCookie":"Cookie sécurisé (HTTPS)",
|
||||
"security":"Sécurité",
|
||||
"sendTestMail":"Test envoi de mail",
|
||||
"sendTestMailSuccess":"Envoi du mail de test réussi",
|
||||
"serverError":"Erreur du serveur",
|
||||
"session":"session",
|
||||
"sessions":"Sessions",
|
||||
|
|
|
@ -272,6 +272,7 @@
|
|||
"demoExportedVars":"Variabili esportate",
|
||||
"demoParams":"Parametri di dimostrazione",
|
||||
"description":"Descrizione",
|
||||
"dest":"Recipient",
|
||||
"diffViewer":"Visualizzatore di differenza",
|
||||
"diffWithPrevious":"differenza con il precedente",
|
||||
"disabled":"Disabilitato",
|
||||
|
@ -841,6 +842,8 @@
|
|||
"secondFactors":"Secondi fattori",
|
||||
"securedCookie":"Cookie protetti (SSL)",
|
||||
"security":"Sicurezza",
|
||||
"sendTestMail":"Send test email",
|
||||
"sendTestMailSuccess":"Test email successfully sent",
|
||||
"serverError":"Errore del server",
|
||||
"session":"sessione",
|
||||
"sessions":"Sessioni",
|
||||
|
@ -1152,4 +1155,4 @@
|
|||
"samlRelayStateTimeout":"Timeout di sessione di RelayState",
|
||||
"samlUseQueryStringSpecific":"Utilizza il metodo specifico query_string",
|
||||
"samlOverrideIDPEntityID":"Sostituisci l'ID entità quando agisce come IDP"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -272,6 +272,7 @@
|
|||
"demoExportedVars":"Wyeksportowane zmienne",
|
||||
"demoParams":"Parametry demonstracyjne",
|
||||
"description":"Opis",
|
||||
"dest":"Recipient",
|
||||
"diffViewer":"Przeglądarka różnic",
|
||||
"diffWithPrevious":"różnica w stosunku do poprzednich",
|
||||
"disabled":"Wyłączone",
|
||||
|
@ -841,6 +842,8 @@
|
|||
"secondFactors":"Drugi czynnik",
|
||||
"securedCookie":"Bezpieczne pliki cookie (SSL)",
|
||||
"security":"Bezpieczeństwo",
|
||||
"sendTestMail":"Send test email",
|
||||
"sendTestMailSuccess":"Test email successfully sent",
|
||||
"serverError":"Błąd serwera",
|
||||
"session":"sesja",
|
||||
"sessions":"Sesje",
|
||||
|
@ -1152,4 +1155,4 @@
|
|||
"samlRelayStateTimeout":"Limit czasu sesji RelayState",
|
||||
"samlUseQueryStringSpecific":"Użyj określonej metody query_string",
|
||||
"samlOverrideIDPEntityID":"Zastąp identyfikator jednostki podczas działania jako IDP"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -272,6 +272,7 @@
|
|||
"demoExportedVars":"Dışa aktarılan değişkenler",
|
||||
"demoParams":"Gösterim parametreleri",
|
||||
"description":"Açıklama",
|
||||
"dest":"Recipient",
|
||||
"diffViewer":"Fark görüntüleyici",
|
||||
"diffWithPrevious":"önceki ile farkı",
|
||||
"disabled":"Devre dışı",
|
||||
|
@ -841,6 +842,8 @@
|
|||
"secondFactors":"İki faktörlü kimlik doğrulama",
|
||||
"securedCookie":"Güvenli Çerez (SSL)",
|
||||
"security":"Güvenlik",
|
||||
"sendTestMail":"Send test email",
|
||||
"sendTestMailSuccess":"Test email successfully sent",
|
||||
"serverError":"Sunucu hatası",
|
||||
"session":"oturum",
|
||||
"sessions":"Oturumlar",
|
||||
|
@ -1152,4 +1155,4 @@
|
|||
"samlRelayStateTimeout":"RelayState oturum zaman aşımı",
|
||||
"samlUseQueryStringSpecific":"Spesifik query_string metodu kullan",
|
||||
"samlOverrideIDPEntityID":"IDP olarak davrandığında Varlık ID'yi geçersiz kıl"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -272,6 +272,7 @@
|
|||
"demoExportedVars":"Xuất khẩu biến",
|
||||
"demoParams":"Tham số trình diễn",
|
||||
"description":"Mô tả",
|
||||
"dest":"Recipient",
|
||||
"diffViewer":"Người xem khác ",
|
||||
"diffWithPrevious":"khác biệt với cái trước",
|
||||
"disabled":"Tắt",
|
||||
|
@ -841,6 +842,8 @@
|
|||
"secondFactors":"Second factors",
|
||||
"securedCookie":"Cookie bảo mật (SSL)",
|
||||
"security":"An ninh",
|
||||
"sendTestMail":"Send test email",
|
||||
"sendTestMailSuccess":"Test email successfully sent",
|
||||
"serverError":"Lỗi máy chủ",
|
||||
"session":"phiên",
|
||||
"sessions":"Phiên",
|
||||
|
@ -1152,4 +1155,4 @@
|
|||
"samlRelayStateTimeout":"Thời gian hết hạn phiên RelayState ",
|
||||
"samlUseQueryStringSpecific":"Sử dụng phương pháp query_string cụ thể",
|
||||
"samlOverrideIDPEntityID":"Override Entity ID when acting as IDP"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -272,6 +272,7 @@
|
|||
"demoExportedVars":"Exported variables",
|
||||
"demoParams":"Demonstration parameters",
|
||||
"description":"Description",
|
||||
"dest":"Recipient",
|
||||
"diffViewer":"Difference viewer",
|
||||
"diffWithPrevious":"difference with previous",
|
||||
"disabled":"Disabled",
|
||||
|
@ -841,6 +842,8 @@
|
|||
"secondFactors":"Second factors",
|
||||
"securedCookie":"Secured Cookie (SSL)",
|
||||
"security":"Security",
|
||||
"sendTestMail":"Send test email",
|
||||
"sendTestMailSuccess":"Test email successfully sent",
|
||||
"serverError":"Server error",
|
||||
"session":"session",
|
||||
"sessions":"Sessions",
|
||||
|
@ -1152,4 +1155,4 @@
|
|||
"samlRelayStateTimeout":"RelayState session timeout",
|
||||
"samlUseQueryStringSpecific":"Use specific query_string method",
|
||||
"samlOverrideIDPEntityID":"Override Entity ID when acting as IDP"
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user