mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 03:12:54 +03:00
dddae8e257
* 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
23 lines
578 B
JavaScript
23 lines
578 B
JavaScript
var users = [
|
|
{
|
|
"id": 1,
|
|
"uuid": "ba9c67e4-8046-4b8c-9349-0eed3cca7529",
|
|
"name": "some-user",
|
|
"slug": "some-user",
|
|
"email": "some@email.com",
|
|
"image": null,
|
|
"cover": null,
|
|
"bio": "",
|
|
"website": "",
|
|
"location": "",
|
|
"accessibility": null,
|
|
"status": "active",
|
|
"language": "en_US",
|
|
"meta_title": null,
|
|
"meta_description": null,
|
|
"created_at": "2014-02-15T20:02:25.000Z",
|
|
"updated_at": "2014-03-11T14:06:43.000Z"
|
|
}
|
|
];
|
|
|
|
export default users; |