split controller to Profile* and Account*, sort tables by last change
This commit is contained in:
+1
-1
@@ -22,6 +22,7 @@ function _loginVia($method) {
|
||||
->where('provider_user_id', $details->id)
|
||||
->exists()) {
|
||||
Auth::logout();
|
||||
|
||||
abort(403,
|
||||
"Account with this e-mail already exists. Add the identity
|
||||
to the account manually after logging in through an existing
|
||||
@@ -85,7 +86,6 @@ Route::get('/auth/facebook/callback', function() {
|
||||
return _loginVia('facebook');
|
||||
})->name('oauth-facebook-callback');
|
||||
|
||||
Route::get('/auth/forget/{id}', 'ProfileController@forgetSocialLogin')->name('forget-identity');
|
||||
|
||||
/*
|
||||
Route::get('/auth/stack/authorize', function() {
|
||||
|
||||
+8
-5
@@ -31,12 +31,15 @@ Route::group(['middleware' => 'auth'], function () {
|
||||
'prefix' => 'profile',
|
||||
], function () {
|
||||
Route::get('edit', 'ProfileController@editProfile')->name('profile.edit');
|
||||
Route::post('edit', 'ProfileController@storeProfile')->name('profile.store');
|
||||
Route::post('store', 'ProfileController@storeProfile')->name('profile.store');
|
||||
});
|
||||
|
||||
Route::post('create', 'TableController@storeNew')->name('table.storeNew');
|
||||
|
||||
Route::get('logins', 'ProfileController@editAccount')->name('account.edit');
|
||||
Route::post('logins', 'ProfileController@storeAccount')->name('account.store');
|
||||
Route::group([
|
||||
'prefix' => 'account',
|
||||
], function () {
|
||||
Route::get('edit', 'AccountController@editAccount')->name('account.edit');
|
||||
Route::post('store', 'AccountController@storeAccount')->name('account.store');
|
||||
Route::get('forget-social-login/{id}', 'AccountController@forgetSocialLogin')->name('forget-identity');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user