X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/30da10581272d8414c2ac345b098c3deb70d3159..refs/pull/1756/head:/app/Http/Controllers/Auth/LoginController.php diff --git a/app/Http/Controllers/Auth/LoginController.php b/app/Http/Controllers/Auth/LoginController.php index 21ded2355..2b51ab997 100644 --- a/app/Http/Controllers/Auth/LoginController.php +++ b/app/Http/Controllers/Auth/LoginController.php @@ -53,8 +53,8 @@ class LoginController extends Controller $this->socialAuthService = $socialAuthService; $this->ldapService = $ldapService; $this->userRepo = $userRepo; - $this->redirectPath = baseUrl('/'); - $this->redirectAfterLogout = baseUrl('/login'); + $this->redirectPath = url('/'); + $this->redirectAfterLogout = url('/http/source.bookstackapp.com/login'); parent::__construct(); } @@ -98,6 +98,7 @@ class LoginController extends Controller $user->save(); $this->userRepo->attachDefaultRole($user); + $this->userRepo->downloadAndAssignUserAvatar($user); auth()->login($user); }