{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/11915","labels_url":"https://api.github.com/repos/laravel/framework/issues/11915/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/11915/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/11915/events","html_url":"https://github.com/laravel/framework/issues/11915","id":127024279,"number":11915,"title":"Laravel 5.2 auth validator redirects to wrong page","user":{"login":"ChumburidzeGio","id":6562948,"avatar_url":"https://avatars.githubusercontent.com/u/6562948?v=3","gravatar_id":"","url":"https://api.github.com/users/ChumburidzeGio","html_url":"https://github.com/ChumburidzeGio","followers_url":"https://api.github.com/users/ChumburidzeGio/followers","following_url":"https://api.github.com/users/ChumburidzeGio/following{/other_user}","gists_url":"https://api.github.com/users/ChumburidzeGio/gists{/gist_id}","starred_url":"https://api.github.com/users/ChumburidzeGio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChumburidzeGio/subscriptions","organizations_url":"https://api.github.com/users/ChumburidzeGio/orgs","repos_url":"https://api.github.com/users/ChumburidzeGio/repos","events_url":"https://api.github.com/users/ChumburidzeGio/events{/privacy}","received_events_url":"https://api.github.com/users/ChumburidzeGio/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-16T13:19:51Z","updated_at":"2016-01-17T10:44:21Z","closed_at":null,"body":"Since I upgraded to laravel 5.2 i had some issue with Auth, validator on fails redirect me to homepage instead of /login or /register.\r\n\r\nI tried to display errors on home page and its working !\r\n\r\nThe only problem was wrong redirect paths\r\n\r\n\r\nFor this problem I found solution: \r\n\r\nchanged in **vendor/laravel/framework/src/Illuminate/Foundation/Auth/RegistersUsers.php**\r\nline 58-60 with\r\n\r\n            return redirect('register')\r\n                        ->withErrors($validator)\r\n                        ->withInput();\r\n\r\n\r\nand in **vendor/laravel/framework/src/Illuminate/Foundation/Auth/AuthenticatesUsers.php**   \r\non line 117 replace `return redirect()->back()` with `return redirect('login')`\r\n\r\n\r\nis this problem by wrong configuration or its by 5.2 ? \r\n\r\n\r\nthere is my route.php\r\n\r\n    Route::group(['middleware' => 'web'], function () {\r\n        Route::auth();\r\n        Route::get('/soc/{provider}', 'Auth\\AuthController@redirectToProvider');\r\n        Route::get('/soccallback/{provider}', 'Auth\\AuthController@handleProviderCallback');\r\n        \r\n        \r\n        Route::get('/', 'PostController@index');\r\n        Route::get('/page.index', 'PageController@index');\r\n        Route::get('/page.id/{id}', 'PageController@show');\r\n        \r\n    }); \r\n"},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/172311314","html_url":"https://github.com/laravel/framework/issues/11915#issuecomment-172311314","issue_url":"https://api.github.com/repos/laravel/framework/issues/11915","id":172311314,"user":{"login":"ChumburidzeGio","id":6562948,"avatar_url":"https://avatars.githubusercontent.com/u/6562948?v=3","gravatar_id":"","url":"https://api.github.com/users/ChumburidzeGio","html_url":"https://github.com/ChumburidzeGio","followers_url":"https://api.github.com/users/ChumburidzeGio/followers","following_url":"https://api.github.com/users/ChumburidzeGio/following{/other_user}","gists_url":"https://api.github.com/users/ChumburidzeGio/gists{/gist_id}","starred_url":"https://api.github.com/users/ChumburidzeGio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChumburidzeGio/subscriptions","organizations_url":"https://api.github.com/users/ChumburidzeGio/orgs","repos_url":"https://api.github.com/users/ChumburidzeGio/repos","events_url":"https://api.github.com/users/ChumburidzeGio/events{/privacy}","received_events_url":"https://api.github.com/users/ChumburidzeGio/received_events","type":"User","site_admin":false},"created_at":"2016-01-17T10:44:21Z","updated_at":"2016-01-17T10:44:21Z","body":"Yeah rigth but why i got that problem?"}}