diff --git a/composer.json b/composer.json index 19b8042..7ff0083 100644 --- a/composer.json +++ b/composer.json @@ -25,8 +25,7 @@ "illuminate/view": "^8.0", "laravel/socialite": "^5.0", "socialiteproviders/gitlab": "^3.1|^4.0", - "socialiteproviders/dropbox": "^4.1", - "laravel/ui": "^3.0" + "socialiteproviders/dropbox": "^4.1" }, "require-dev": { "fzaninotto/faker": "~1.9.1", diff --git a/src/Auth/AuthenticatesUsersWithIdentity.php b/src/Auth/AuthenticatesUsersWithIdentity.php index eee016c..f6deeae 100644 --- a/src/Auth/AuthenticatesUsersWithIdentity.php +++ b/src/Auth/AuthenticatesUsersWithIdentity.php @@ -5,7 +5,6 @@ use Illuminate\Http\Request; use Illuminate\Http\Response; use Illuminate\Support\Facades\Auth; -use Illuminate\Foundation\Auth\RedirectsUsers; use Illuminate\Validation\ValidationException; use Oneofftech\Identities\Facades\Identity; use Oneofftech\Identities\Support\FindIdentity; diff --git a/src/Auth/ConnectUserIdentity.php b/src/Auth/ConnectUserIdentity.php index ae65b4f..08108a5 100644 --- a/src/Auth/ConnectUserIdentity.php +++ b/src/Auth/ConnectUserIdentity.php @@ -5,7 +5,6 @@ use Illuminate\Http\Request; use Illuminate\Http\Response; use Illuminate\Support\Facades\Auth; -use Illuminate\Foundation\Auth\RedirectsUsers; use Illuminate\Support\Facades\DB; use Oneofftech\Identities\Facades\IdentityCrypt; use Oneofftech\Identities\Facades\Identity; diff --git a/src/Auth/RedirectsUsers.php b/src/Auth/RedirectsUsers.php new file mode 100644 index 0000000..dcf4684 --- /dev/null +++ b/src/Auth/RedirectsUsers.php @@ -0,0 +1,24 @@ +redirectTo(); + } + + return property_exists($this, 'redirectTo') ? $this->redirectTo : '/home'; + } +} diff --git a/src/Auth/RegistersUsersWithIdentity.php b/src/Auth/RegistersUsersWithIdentity.php index 3c23ebe..40bcf78 100644 --- a/src/Auth/RegistersUsersWithIdentity.php +++ b/src/Auth/RegistersUsersWithIdentity.php @@ -6,7 +6,6 @@ use Illuminate\Http\Request; use Illuminate\Http\Response; use Illuminate\Support\Facades\Auth; -use Illuminate\Foundation\Auth\RedirectsUsers; use Illuminate\Support\Arr; use Illuminate\Support\Facades\DB; use Oneofftech\Identities\Facades\IdentityCrypt;