mardi 1 septembre 2015

laravel 5 Auth change table columns

I changed some fields in users database table. table name: users primaryKey: user_id username: user_username password: user_password e-mail: user_mail in Illuminate\Foundation\AuthAuthenticatesUsers I added protected $username = 'user_username';

When i try login to my account when i handed username and password i see blank page. Debug is on but not working. What happend?

Auth::attempt(array(
            'user_username' => 'pionas',
            'user_password'  => '12345',
        ));

I User model i add getAuthPassword and change column name to user_password. Log is clear...

Auth::loginUsingId(1); - not working Probably all method in Auth not working



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1N89S57
via IFTTT

Aucun commentaire:

Enregistrer un commentaire