cartalyst / sentinel

A framework agnostic authentication & authorization system.
BSD 3-Clause "New" or "Revised" License
1.52k stars 240 forks source link

How to change login fields? #445

Closed JospyK closed 5 years ago

JospyK commented 6 years ago

Hi everyone. Hope you're doing good. I'm using laravel 5.4 on a project right now and I want to change actual login field (email and password) by something like Phone and password. I don't know how to manage that. And of course I'm using Sentinel package for my Auth System. Could someone help me solve this issue? Thanks to everyone.

ninja1ndia commented 5 years ago

simple just add in login columns project/config/platform-users.php 'login_columns' => [ 'email', 'password', ], 'login_columns' => [ 'email', 'phone', 'password', ], @JospyK

JospyK commented 5 years ago

thank you @Surya1995