mardi 25 février 2020

Login only with phone number without password - Laravel

I'm working in Laravel, So far I created two logins using guard. Now I'm trying to login via Google using socialite. So successful authentication from google, I get a users profile. So from that I can get users email Id. Now I want to login via same guard with password.

'adminpanel' => [
            'driver' => 'session',
            'provider' => 'adminusers',
        ],
         'web' => [
            'driver' => 'session',
            'provider' => 'users',
        ],
    ]
'providers' => [
        'users' => [
            'driver' => 'eloquent',
            'model' => App\User::class,
        ],
'adminusers' => [
            'driver' => 'eloquent',
            'model' => App\VendorUser::class,
        ],
    ],

So is there is any tricks to make a authentication, I tried a alot.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire