app.service("AuthService",["Users","$window",function(a,b){
var c=this;
c.updateCurrent=function(){
return c.user=a.current(), c.user},
c.updateCurrent(),
c.currentUser=function(){return c.user},
c.signOut=function(){b.location="/accounts/logout/"}}
])