Name: ng-auth
Owner: Topcoder
Description: ng-auth
Created: 2015-05-26 21:59:54.0
Updated: 2016-01-12 17:23:17.0
Pushed: 2017-01-16 05:07:53.0
Size: 1243
Language: CoffeeScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
r install appirio-tech-ng-auth=git@github.com:appirio-tech/ng-auth --save
ipt src="/bower_components/appirio-tech-ng-auth/dist/main.js" type="text/javascript"></script>
strict'
ndencies = [
ppirio-tech-ng-auth'
lar.module 'app', dependencies
roller = -> ($scope, AuthService)
Success = ->
console.log 'log in successful'
Error = ->
console.log 'log in failed'
cope.login = ->
loginOptions =
username: $scope.username
password: $scope.password
error: onError
success: onSuccess
AuthService.login loginOptions
ggedIn = AuthService.isLoggedIn
roller = -> ($scope, UserV3Service)
= this
ope.$watch UserV3Service.getCurrentUser, ->
user = UserV3Service.getCurrentUser()
vm.user = user if user