"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "privacyidea/static/components/config/controllers/smtpServerController.js" between
privacyidea-3.5.2.tar.gz and privacyidea-3.6.tar.gz

About: privacyIDEA is a flexible two factor authentication server that can be used to enhance the security of existing applications like local login, VPN, remote access, SSH connections or access to web sites.

smtpServerController.js  (privacyidea-3.5.2):smtpServerController.js  (privacyidea-3.6)
skipping to change at line 32 skipping to change at line 32
gettextCatalog, $state, gettextCatalog, $state,
$location, ConfigFactory) { $location, ConfigFactory) {
if ($location.path() === "/config/smtp") { if ($location.path() === "/config/smtp") {
$location.path("/config/smtp/list"); $location.path("/config/smtp/list");
} }
$scope.identifier = $stateParams.identifier; $scope.identifier = $stateParams.identifier;
if ($scope.identifier) { if ($scope.identifier) {
// We are editing an existing SMTP Server // We are editing an existing SMTP Server
$scope.getSmtpServers($scope.identifier); $scope.getSmtpServers($scope.identifier);
} else {
// This is a new SMTP server
$scope.params = {
tls: true,
port: 25,
timeout: 10
}
} }
// Get all servers // Get all servers
$scope.getSmtpServers = function (identifier) { $scope.getSmtpServers = function (identifier) {
ConfigFactory.getSmtp(function(data) { ConfigFactory.getSmtp(function(data) {
$scope.smtpServers = data.result.value; $scope.smtpServers = data.result.value;
//debug: console.log("Fetched all smtp servers"); //debug: console.log("Fetched all smtp servers");
//debug: console.log($scope.smtpServers); //debug: console.log($scope.smtpServers);
// return one single smtp server // return one single smtp server
if (identifier) { if (identifier) {
 End of changes. 1 change blocks. 
0 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)