Permalink
Browse files

Merge pull request #3 from imehesz/master

updated README and fixed missing user info in navbar after page-refresh
  • Loading branch information...
2 parents 6c3db6b + 4efdbe8 commit 6fed5d261ebbb2a3768dd831c8ab28e6f7378793 @mtabin mtabin committed May 5, 2012
Showing with 8 additions and 3 deletions.
  1. +2 −0 README.md
  2. +6 −3 app/js/app.js
View
@@ -47,6 +47,8 @@ After you clone the repo, create a params-local.php file inside
'env' => 'private',
);
+Create a folder _protected/runtime_ and make it writable by the webserver.
+
run the migrations:
$ cd YiiBackbone/protected
View
@@ -52,15 +52,18 @@ define([
this.initSearch();
this.initMisc();
this.initRouter();
+ this.checkAuth();
},
checkAuth: function() {
+ self = this;
+
// Check user authentication
var params = this.getCookieParams();
if (params) {
- loginModel.set('username', params.username);
- loginModel.set('token', params.token);
- loginModel.set('authenticated', true);
+ self.loginModel.set('username', params.username);
+ self.loginModel.set('token', params.token);
+ self.loginModel.set('authenticated', true);
}
},

0 comments on commit 6fed5d2

Please sign in to comment.