Questions tagged [laravel-authentication]

Laravel ships with several pre-built authentication controllers for user registration, authentication, and password reset.

Laravel ships with several pre-built authentication controllers for user registration, authentication, and password reset.

376 questions
0
votes
2 answers

How do I validate User role on Laravel 5.8s Built in Authentication?

I've a User Role column on my User's table. stands for Super Admin, stands for other users I've checked a lot of Laravel Tutorials and none of them has helped me about solving this issue. I've found ways like replacing the whole Laravel's Login…
0
votes
1 answer

Mail not sending after changing the project directory name

I change the project name after copy and paste, and test to send the forgot your password email but got the error (1/1) ErrorException stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL…
Mohsin
  • 179
  • 4
  • 13
0
votes
2 answers

How can fix the change of my intended Website URL?

I created a auth for my website. I have figured out that if a User is logged in he cant go back to the homepage because he is now in the dashboard. I changed everything from the generated home.blade.php to dashboard.blade.php also all related…
0
votes
1 answer

Login view shows blank page with url: /login when logged in

I'm using Laravel build-in authentication methods. I have a redirect function which returns routes for different user roles. It doesn't redirect to the specified URL when going to /login it just shows a blank URL with the plain route (/login) in…
DutchPrince
  • 333
  • 2
  • 16
0
votes
1 answer

How to customize "email" field in Laravel auth?

I'm trying to customize Laravel's authentication fields. I succeeded for the "name" and "password" fields, but not for the "email" field. I still have the error: SQLSTATE[42S22]: Column not found: 1054 "email" field unknown in where clause. I…
0
votes
1 answer

Laravel - Custome Auth Throttlelogins

I have created a custom authentication and everything is working fine. Now I am trying to add the Throttlelogins to prevent multiple incorrect login attempts. But The ThrottleLogins doesn't seem to load. Q: What am I missing here? or am I doing…
Aldrick
  • 33
  • 6
0
votes
2 answers

Laravel Auth register user failing

I'm using Laravel's Auth scaffolding. When trying to register (create) a new user I'm getting the following error (from the logs): Integrity constraint violation: 19 NOT NULL constraint failed: users.password but password is part of $hidden array.…
MrCujo
  • 1,218
  • 3
  • 31
  • 56
0
votes
1 answer

How add new parameter to check in login Laravel

In LoginController I override the credentials method, like this: protected function credentials(Request $request) { $credentials = $request->only($this->username(), 'password'); $credentials['status'] = User::STATUS_ACTIVE; return…
0
votes
1 answer

in Laravel HTTP Basic Authentication implementation it uses email for username , how do we change the column to be username?

in laravel we can use Http Basic Authentication to facilitate user login . without having a login page , by attaching middleware->('auth.basic') , to the end of the Route in web.php , but by default it gets email as the username , how may i change…
Geco
  • 177
  • 1
  • 17
0
votes
2 answers

How Can I Assign 2 Or More User Roles To 1 One Route In Laravel?

I have user table with column role for user roles with Enum value: Migration $table->enum('role', ['Admin','author','editor']); What I want is, only Admin and author user Can Access to site.com/view/problems this page. I have created 3 Middlewares…
0
votes
0 answers

How can I check if the email has been confirmed by the guest before sending the second email

I use Laravel 5.8, and I would like to send two emails after registration. I want the first email to go to the guest directly after registration and the second to the user after the guest has confirmed his email address. Below, this can be seen…
nopox
  • 1
  • 1
0
votes
3 answers

How Can I Show Or Hide Only A Part Of My Table To Guest Users In Laravel?

I Have A Page That Shows a Table , I want to hide only 1 Columns Of My table and only show to Admin User role . But I want to show other columns to my guest users that have not logged in my site. when i do with this code…
Amin Arjmand
  • 435
  • 7
  • 21
0
votes
3 answers

How to redirect non-authenticated users to login view

I'm making an application which requires a user and password for access. Every user should face the login view. Currently, writing the URL manually, I can access all the routes without login. What I want is to redirect every unauthenticated user to…
Jesus
  • 117
  • 10
0
votes
4 answers

how to define Undefined variable: token (View: C:\xampp\htdocs\blog\resources\views\auth\passwords\email.blade.php)

Undefined variable: token (View: C:\xampp\htdocs\blog\resources\views\auth\passwords\email.blade.php)
Suman Kumari
  • 103
  • 1
  • 2
  • 7
0
votes
1 answer

Auth::attempt returns true, but redirects to other page and returns guest

Why does my Auth::attempt return false when refreshing or redirecting to another page? Below is my controller; I'm using Laravel 5.8. I was using Auth::logingUsingId() and it's the same; it returns false if refreshed or redirecting to another…