Skip to content

Instantly share code, notes, and snippets.

@simonmorley
Last active August 29, 2015 14:13
Show Gist options
  • Save simonmorley/cf064be0f806af754046 to your computer and use it in GitHub Desktop.
Save simonmorley/cf064be0f806af754046 to your computer and use it in GitHub Desktop.
medium, creating a login, integrating meraki, creating a cllient.details service controller integration
var init = function(client) {
var head = angular.element('head')
var template;
Login.initialise({request_uri: client.requestUri, mac: client.apMac}).$promise.then(function(results) {
if (results.archived === true) {
archivedLocation();
}
else if ( results.error ) {
var msg = '<p>' + results.error + '</p>';
genericError(msg);
} else {
if ($location.path() === '/oh') {
$location.path('');
}
buildPage(results);
}
}, function(err) {
displayError(err);
});
// Missing login, see Github
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment