1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-31 15:24:31 +03:00

Added tests to cover social login actions

Closes #244
This commit is contained in:
Dan Brown
2017-01-02 14:56:58 +00:00
parent 7c8c4c2a05
commit f2917fc462
3 changed files with 46 additions and 3 deletions

View File

@ -98,7 +98,6 @@ class SocialAuthService
// Get any attached social accounts or users
$socialAccount = $this->socialAccount->where('driver_id', '=', $socialId)->first();
$user = $this->userRepo->getByEmail($socialUser->getEmail());
$isLoggedIn = auth()->check();
$currentUser = user();