|
|
|
@ -19,7 +19,7 @@ angular.module('myApp.controllers', ['myApp.i18n'])
@@ -19,7 +19,7 @@ angular.module('myApp.controllers', ['myApp.i18n'])
|
|
|
|
|
} |
|
|
|
|
if (location.protocol == 'http:' && |
|
|
|
|
Config.App.domains.indexOf(location.hostname) != -1) { |
|
|
|
|
location = 'https://' + location.hostname + '/#/login'; |
|
|
|
|
location.protocol = 'https:'; |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
$scope.showWelcome = true; |
|
|
|
@ -41,7 +41,7 @@ angular.module('myApp.controllers', ['myApp.i18n'])
@@ -41,7 +41,7 @@ angular.module('myApp.controllers', ['myApp.i18n'])
|
|
|
|
|
} |
|
|
|
|
if (location.protocol == 'http:' && |
|
|
|
|
Config.App.domains.indexOf(location.hostname) != -1) { |
|
|
|
|
location = 'https://' + location.hostname + '/#/login'; |
|
|
|
|
location.protocol = 'https:'; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
var options = {dcID: 2, createNetworker: true}, |
|
|
|
@ -614,7 +614,7 @@ angular.module('myApp.controllers', ['myApp.i18n'])
@@ -614,7 +614,7 @@ angular.module('myApp.controllers', ['myApp.i18n'])
|
|
|
|
|
MtpApiManager.logOut()['finally'](function () { |
|
|
|
|
if (location.protocol == 'http:' && |
|
|
|
|
Config.App.domains.indexOf(location.hostname) != -1) { |
|
|
|
|
location = 'https://' + location.hostname + '/#/login'; |
|
|
|
|
location.protocol = 'https:'; |
|
|
|
|
} else { |
|
|
|
|
location.hash = '/login'; |
|
|
|
|
AppRuntimeManager.reload(); |
|
|
|
|