Created
September 12, 2016 16:32
-
-
Save unicodeveloper/d7ea83a64146d0b88861add126974ad9 to your computer and use it in GitHub Desktop.
Cloudinary Blog Post - Part 1
This file contains 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
app.controller('LogoutCtrl', function($location, $auth, toastr) { | |
if (!$auth.isAuthenticated()) { return; } | |
$auth.logout() | |
.then(function() { | |
toastr.info('You have been logged out'); | |
$location.path('/'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment