Check for activated instead of fqdn to redirect to setup screens
This commit is contained in:
@@ -92,7 +92,7 @@ angular.module('Application').controller('MainController', ['$scope', '$route',
|
||||
Client.getStatus(function (error, status) {
|
||||
if (error) return $scope.error(error);
|
||||
|
||||
if (!status.adminFqdn) {
|
||||
if (!status.activated) {
|
||||
console.log('You have on domain, redirecting', status.configState.configured);
|
||||
window.location.href = status.configState.configured ? '/setup.html' : '/setupdns.html';
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user