2015-08-25 20:59:54 +00:00
|
|
|
(function() {
|
2015-09-24 13:11:48 +00:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
angular
|
|
|
|
.module('vertoControllers')
|
|
|
|
.controller('LoginController', ['$scope', '$http', '$location', 'verto',
|
|
|
|
function($scope, $http, $location, verto) {
|
|
|
|
var preRoute = function() {
|
|
|
|
if(verto.data.connected) {
|
|
|
|
$location.path('/dialpad');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
preRoute();
|
|
|
|
|
|
|
|
verto.data.name = $scope.storage.data.name;
|
|
|
|
verto.data.email = $scope.storage.data.email;
|
|
|
|
|
|
|
|
console.debug('Executing LoginController.');
|
|
|
|
}
|
|
|
|
]);
|
2015-09-15 21:45:08 +00:00
|
|
|
|
|
|
|
})();
|
|
|
|
|