template/app/Auth.js
0 → 100644
+163
−0
+27
−2
+31
−171
Loading
Created Docs.Auth which performs the actual login/logout stuff. Docs.view.auth.Form represents the form at the header of the app, firering "login" and "logout" events. The Auth controller just binds these two things together - listening to the events from AuthForm, performing the login with Docs.Auth and calling back to AuthForm to change how it looks after login.