0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/server
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
..
api Replace JSLint with JSHint. 2014-03-04 15:47:39 +00:00
apps Replace JSLint with JSHint. 2014-03-04 15:47:39 +00:00
config Replace JSLint with JSHint. 2014-03-04 15:47:39 +00:00
controllers Merge branch 'master' into ember 2014-03-05 23:10:44 +00:00
data Change validation for posts 'page' attribute. 2014-03-04 17:59:00 -03:30
helpers jsHint fixes 2014-03-04 20:32:04 +00:00
middleware Ember.js: User fixtures + injection + login 2014-03-12 19:26:47 +01:00
models Update validator to 3.4.0 2014-03-04 13:54:24 -07:00
permissions Replace underscore with lodash. 2014-02-06 14:08:34 +00:00
routes Add HTML5 pushState support for Ember 2014-03-09 20:57:13 -04:00
storage Replace JSLint with JSHint. 2014-03-04 15:47:39 +00:00
views Merge branch 'master' into ember 2014-03-09 23:04:36 +00:00
api.js
bookshelf-session.js Improvements for models 2014-02-19 14:57:26 +01:00
errorHandling.js Do not cache 404 pages 2014-03-06 20:06:07 -05:00
filters.js Add JSON API tests & cleanup 2014-02-28 22:26:03 +00:00
index.js Replace JSLint with JSHint. 2014-03-04 15:47:39 +00:00
mail.js Update system emails to come from ghost@blog.url 2014-03-06 12:03:00 +01:00
middleware.js
require-tree.js Refactor require-tree to not share messages 2014-02-28 14:13:45 -06:00
update-check.js Fix problems from importing 0.4.0 file 2014-02-25 20:15:32 +01:00