mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
parent
0fb1fc87c8
commit
c403d05755
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace BookStack\Http\Controllers\Auth;
|
namespace BookStack\Http\Controllers\Auth;
|
||||||
|
|
||||||
|
use BookStack\Exceptions\AuthException;
|
||||||
use BookStack\Http\Controllers\Controller;
|
use BookStack\Http\Controllers\Controller;
|
||||||
use BookStack\Repos\UserRepo;
|
use BookStack\Repos\UserRepo;
|
||||||
use BookStack\Services\SocialAuthService;
|
use BookStack\Services\SocialAuthService;
|
||||||
|
@ -51,7 +51,7 @@ class RegisterController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function __construct(SocialAuthService $socialAuthService, EmailConfirmationService $emailConfirmationService, UserRepo $userRepo)
|
public function __construct(SocialAuthService $socialAuthService, EmailConfirmationService $emailConfirmationService, UserRepo $userRepo)
|
||||||
{
|
{
|
||||||
$this->middleware('guest');
|
$this->middleware('guest')->except(['socialCallback', 'detachSocialAccount']);
|
||||||
$this->socialAuthService = $socialAuthService;
|
$this->socialAuthService = $socialAuthService;
|
||||||
$this->emailConfirmationService = $emailConfirmationService;
|
$this->emailConfirmationService = $emailConfirmationService;
|
||||||
$this->userRepo = $userRepo;
|
$this->userRepo = $userRepo;
|
||||||
@ -297,5 +297,4 @@ class RegisterController extends Controller
|
|||||||
return $this->registerUser($userData, $socialAccount);
|
return $this->registerUser($userData, $socialAccount);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
@ -153,7 +153,7 @@ Route::group(['middleware' => 'auth'], function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Social auth routes
|
// Social auth routes
|
||||||
Route::get('/login/service/{socialDriver}', 'Auth\RegisterController@getSocialLogin');
|
Route::get('/login/service/{socialDriver}', 'Auth\LoginController@getSocialLogin');
|
||||||
Route::get('/login/service/{socialDriver}/callback', 'Auth\RegisterController@socialCallback');
|
Route::get('/login/service/{socialDriver}/callback', 'Auth\RegisterController@socialCallback');
|
||||||
Route::get('/login/service/{socialDriver}/detach', 'Auth\RegisterController@detachSocialAccount');
|
Route::get('/login/service/{socialDriver}/detach', 'Auth\RegisterController@detachSocialAccount');
|
||||||
Route::get('/register/service/{socialDriver}', 'Auth\RegisterController@socialRegister');
|
Route::get('/register/service/{socialDriver}', 'Auth\RegisterController@socialRegister');
|
||||||
|
Loading…
Reference in New Issue
Block a user