thinkster-django-angular-tutorial icon indicating copy to clipboard operation
thinkster-django-angular-tutorial copied to clipboard

Chapter 4, Chapter mismatch in var Authentication = block

Open bradleybossard opened this issue 10 years ago • 0 comments

In Chapter 4, under the section "Authentication Service", you have the following code block

var Authentication = { getAuthenticatedAccount: getAuthenticatedAccount, isAuthenticated: isAuthenticated, login: login, register: register, setAuthenticatedAccount: setAuthenticatedAccount, unauthenticate: unauthenticate };

Later, in chapter 5, under the heading "Logout: AngularJS Service" you have the following, where setAuthenticatedAccount and getAuthenticatedAccount is now setAuthenticatedUser, getAuthenticatedUser

var Authentication = { getAuthenticatedUser: getAuthenticatedUser, isAuthenticated: isAuthenticated, login: login, logout: logout, register: register, setAuthenticatedUser: setAuthenticatedUser, unauthenticate: unauthenticate };

bradleybossard avatar Feb 04 '15 17:02 bradleybossard