This repository has been archived on 2023-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
FoodLoop-Web/services/authService.js
2017-03-10 13:26:13 +00:00

14 lines
447 B
JavaScript

/* this service handles all the authentication between client and server */
app.service('authService', function ($http) {
// send a login information to server
// upon success, set sessionToken and store data in dataService
// upon failed, return error
this.username = "";
this.getUsername = function(){
return this.username;
}
this.setUsername = function(setTo){
this.username = setTo;
}
});