Skip to content

Help! My users keep getting redirected away when logging in, how do I solve this? #373

Closed Locked Answered by joelbutcher
joelbutcher asked this question in Q&A
Discussion options

You must be logged in to vote

Socialstream v6 improves the authentication logic an opens up support for Fortify's Two Factor Authentication. However, if you are overriding Fortify's authentication logic (for example, as done in the Fortify docs) you will be missing a bunch of custom logic that Socialstream uses to resolve the user and allow users to log into the application.

For example, if your users can be blocked by administrators, you may want to disable authentication for those uses, by checking for their blocked status. As per the documentation, you would do this by specifying a custom authentication callback:

use App\Models\User;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Hash;
use Laravel\Fortify

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by joelbutcher
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant