0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-13 22:41:32 -05:00
ghost/core
Manuel Mitasch dddae8e257 Ember.js: User fixtures + injection + login
* Adding **user fixtures** for signin

* Adds an initializer for the **current logged in user**.
The created singleton object is injected into all controllers + routes.
It can be used inside routes + controllers with this.get('user').
For simple development the object is instanciated with a userFixture.
Once a proper login and api mock is in place, the fixture needs to be removed.

* Added **route 'login'** on url '/ghost/ember/signin'
* Added authenticated route with an error hook that redirects to the login route, if status 401 (unauthorized) is returned from REST API.
* All "secure" routes now extend from authenticated route
* Add /ghost/ember to noAuthNeeded routes in middleware
2014-03-12 19:26:47 +01:00
..
client Ember.js: User fixtures + injection + login 2014-03-12 19:26:47 +01:00
clientold Merge branch 'master' into ember 2014-03-09 23:04:36 +00:00
server Ember.js: User fixtures + injection + login 2014-03-12 19:26:47 +01:00
shared Switch to bower for client assets. 2014-03-04 20:09:26 +00:00
test Merge branch 'master' into ember 2014-03-09 23:04:36 +00:00
bootstrap.js Replace JSLint with JSHint. 2014-03-04 15:47:39 +00:00
index.js Adds ability to pass in configFile path when loading 2014-02-08 10:41:15 -05:00
server.js Shims for deleted (refactored away) files 2014-01-09 09:21:09 -06:00