Skip to content

Instantly share code, notes, and snippets.

@unicodeveloper
Created September 12, 2016 16:26
Show Gist options
  • Save unicodeveloper/b0b5ce52ec0892ba16b4322a78656a44 to your computer and use it in GitHub Desktop.
Save unicodeveloper/b0b5ce52ec0892ba16b4322a78656a44 to your computer and use it in GitHub Desktop.
Cloudinary Blog Post - Part 1
$scope.signup = function() {
$auth.signup($scope.user)
.then(function(response) {
$auth.setToken(response);
$location.path('/');
toastr.info('You have successfully created a new account and have been signed-in');
})
.catch(function(response) {
console.log(response);
toastr.error(response.data.message);
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment