Skip to content

Commit 07ec40f

Browse files
author
Shawn McCool
committed
add empty favicon
add system to make logins take you back to where you want to be
1 parent 7c9bf5f commit 07ec40f

File tree

5 files changed

+22
-27
lines changed

5 files changed

+22
-27
lines changed

app/domain/Lio/GitHub/GitHubFacade.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ public static function getUserDataByCode($code)
1515
$githubData = json_decode(static::request('user'), true);
1616
list($githubEmail) = json_decode(static::request('user/emails'), true);
1717
$githubData['email'] = $githubEmail;
18+
1819
return $githubData;
1920
}
2021
}

app/filters.php

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,10 @@
66
|--------------------------------------------------------------------------
77
*/
88

9-
App::before(function($request)
10-
{
11-
//
12-
});
13-
9+
App::before(function($request) {});
1410

15-
App::after(function($request, $response)
16-
{
17-
//
11+
App::after(function($request, $response) {
12+
if (Request::path() != "login") Session::put('url.intended', URL::full());
1813
});
1914

2015
/*
@@ -23,8 +18,7 @@
2318
|--------------------------------------------------------------------------
2419
*/
2520

26-
Route::filter('auth', function()
27-
{
21+
Route::filter('auth', function() {
2822
if (Auth::guest()) return Redirect::action('AuthController@getSignup');
2923
});
3024

app/routes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Route::get('/', 'HomeController@getIndex');
44

55
// authentication
6-
Route::get('login', 'AuthController@getLogin');
6+
Route::get('login', ['as' => 'login', 'uses' => 'AuthController@getLogin']);
77
Route::get('signup', 'AuthController@getSignup');
88
Route::get('signup-confirm', 'AuthController@getSignupConfirm');
99
Route::post('signup-confirm', 'AuthController@postSignupConfirm');

composer.lock

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/favicon.ico

Whitespace-only changes.

0 commit comments

Comments
 (0)