Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion src/Auth/AuthenticatesUsersWithIdentity.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion src/Auth/ConnectUserIdentity.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
24 changes: 24 additions & 0 deletions src/Auth/RedirectsUsers.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

namespace Oneofftech\Identities\Auth;

/**
* Copied from https://github.com/laravel/ui/blob/3.x/auth-backend/RedirectsUsers.php
* (c) Taylor Otwell and contributors
*/
trait RedirectsUsers
{
/**
* Get the post register / login redirect path.
*
* @return string
*/
public function redirectPath()
{
if (method_exists($this, 'redirectTo')) {
return $this->redirectTo();
}

return property_exists($this, 'redirectTo') ? $this->redirectTo : '/home';
}
}
1 change: 0 additions & 1 deletion src/Auth/RegistersUsersWithIdentity.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down