Skip to content

Commit

Permalink
Merge cbc3fa2 into 93db86b
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianSkierniewski committed Nov 22, 2015
2 parents 93db86b + cbc3fa2 commit 75c4ce6
Show file tree
Hide file tree
Showing 7 changed files with 709 additions and 507 deletions.
9 changes: 9 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,12 @@ MAIL_HOST=mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null

OAUTH_GOOGLE_CLIENT_ID=
OAUTH_GOOGLE_CLIENT_SECRET=

OAUTH_FB_CLIENT_ID=
OAUTH_FB_CLIENT_SECRET=

OAUTH_TWITTER_CLIENT_ID=
OAUTH_TWITTER_CLIENT_SECRET=
6 changes: 2 additions & 4 deletions app/Http/Controllers/AccountController.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,12 @@ class AccountController extends BaseController {

public function account()
{
$user = Auth::user();
/**@TODO we need proper user menu method */
return view('account.index', ['menu' => App::make('user.menu')->getMenu(), 'user' => $user]);
return view('account.index', ['menu' => App::make('user.menu')->getMenu(), 'user' => auth()->user()]);
}

public function edit()
{
$user = Auth::user();
return view('account.edit', ['menu' => App::make('user.menu')->getMenu(), 'user' => $user]);
return view('account.edit', ['menu' => App::make('user.menu')->getMenu(), 'user' => auth()->user()]);
}
}
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"gzero/cms": "dev-master",
"gzero/api": "dev-master",
"gzero/admin": "dev-master",
"gzero/social": "dev-master",
"thomaswelton/laravel-gravatar": "~1.0"
},
"require-dev": {
Expand Down

0 comments on commit 75c4ce6

Please sign in to comment.