Last active
August 29, 2015 14:13
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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