compass-web/v2.5/src/app/factory/userFactory.coffee

19 lines
469 B
CoffeeScript

define(['./baseFactory'], () ->
'use strict'
class UserFactory
constructor: () ->
# @username = ""
# @password = ""
@isAuthenticated = false
login: ->
@isAuthenticated = true
logout: ->
@isAuthenticated = false
getAuthenticationStatus: ->
return @isAuthenticated
angular.module('compass.factories').factory('userFactory',[ () -> new UserFactory()])
)