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
-1
votes
1 answer

Laravel 9 Email Verification logging out user

since upgrading from Laravel 6 to Laravel 9 i encounter a very interesting problem. The built in email verification thats send via email to the user, requires the user to log in when clicking on the link from the mail. When logging in you get…
-1
votes
2 answers

Attempt to read property "view" on null, laravel reset email notificaiton

When I try to send reset password notification, this error occurs Attempt to read property "view" on null this is the code line on which this error occurs $this->notify(new ResetPasswordNotification($token)); this is my code inside notification…
-1
votes
1 answer

encrypting or hashing phone number in laravel

We have developed a mobile app which uses mobile phone number and otp for authentication. Since phone number is part of sensitive user information, we have to encrypt or hash it to reduce the risk of exposing users sensitive data in case of…
Arif
  • 377
  • 2
  • 5
  • 21
-1
votes
1 answer

How to prevent unwanted API calls in Laravel

I have some simple websites (not Laravel applications) with forms where people can input there postalcode and housenumber where the street and city field automatically gets filled in with the associated information. To accomplish this I make an API…
The Stompiest
  • 318
  • 2
  • 15
-1
votes
1 answer

retrieve database values in register page in laravel

I have registration auth in laravel project and i need some existing datas should show up on the registration form , please guide me up.. http://165.232.187.63/register This is my register page and i need to fetch existing database values in the …
Sam Leumas
  • 23
  • 5
-1
votes
1 answer

Laravel 8 auth always returns false

first of thank you for looking into my problem I got a bug where even with the right credentials, the authentication returns false. I tested the $request and it worked. The connection to the database also works without flawes. p.s. I know that the…
user14136803
  • 1
  • 1
  • 2
-1
votes
1 answer

logout without verifying email Laravel / exclude a route from AUTH routes Laravel

I'm only posting this to make it easy for fellow devs to find the answer more quickly because I couldn't find it on stack overflow so I just figured it out for myself. basically, I added email verification to my routes but when I try to logout it …
-1
votes
1 answer

Customize Laravel auth Login

I need to customize the Login native code of the Laravel Authentication. I started by overrode some methods on LoginController such us credentials and validateLogin adding a field. But I need to add some other checks, such us the possibility to join…
Swim89
  • 290
  • 8
  • 28
-1
votes
1 answer

How to register without email with laravel auth

I want make register form by number, name, password with Laravel auth. So I change username method in LoginController.php and validate method ,create method in RegisterController.php like following code. But always show error SQLSTATE[HY000]:…
-1
votes
1 answer

Laravel authentication with google is not working with guard

I have been working with a Laravel project with multiple guard authentications. one of my guard name is 'customer'. Only customers are allowed to login with their Google Account. Previously I was using Laravel default Users Model as Customer account…
-1
votes
1 answer

How do I Logout and Login in same Controller in Laravel 6?

I have a system where Admin will Enter his Client Dashboard with Client's Credentials. Admin has all information of Clients. --------------------- Client1 Login Client2 Login --------------------- Now in my Controller I want to do…
-1
votes
1 answer

auth::id(); returns 'null' or auth::check(); returns 'false'

I have tried different methods discussed in here but not successful to my problem. Assumptions: Failure to group routes under the same middleware group. Get all the sessions required from web middleware and replace them into global middleware But I…
4xMafole
  • 479
  • 1
  • 8
  • 20
-1
votes
1 answer

Auth::guard() is working wrong in view laravel 5.7

i have a controller: if( Auth::attempt(['mssv' => $username,'password' =>$password])) { $success = new MessageBag(['successlogin' => 'Login Success]); return redirect()->back()->withErrors($success); } elseif(…
-3
votes
1 answer

LARAVEL 7.0 Argument 1 passed to Illuminate\Auth\SessionGuard::login() must implement interface Illuminate\Contracts\Auth\Authenticatable, array given

FULL-ERROR IS: Argument 1 passed to Illuminate\Auth\SessionGuard::login() must implement interface Illuminate\Contracts\Auth\Authenticatable, array given, called in C:\laravel\deliver-boo\vendor\laravel\ui\auth-backend\RegistersUsers.php on line…
-3
votes
1 answer

Updating Php website to laravel and all md5 passwords are broken

i am upgrading my raw php website to laravel 7. all my users have their passwords stored in md5 encryption. now when i try to login any of those user account with correct password, it returns error with 'These credentials do not match our records.'.…
compulsive coder
  • 164
  • 1
  • 10
1 2 3
25
26