Fix #25 - Authorization with zabbix is not initiated.

This commit is contained in:
alexanderzobnin
2015-06-18 16:30:33 +03:00
parent 0d9cb5e7df
commit 7c757ddfff

View File

@@ -225,7 +225,8 @@ function (angular, _, kbn) {
// Handle auth errors
if (response.data.error.data == "Session terminated, re-login, please." ||
response.data.error.data == 'Not authorised.') {
response.data.error.data == "Not authorised." ||
response.data.error.data == "Not authorized") {
return self.performZabbixAPILogin().then(function (response) {
self.auth = response;
return self.performZabbixAPIRequest(method, params);