How to Login with attempt function in laravel 4.2

Submitted by userhuman - 1 year ago

I want to use function attempt for login authenticate but i don't want send variable password * If i run code this it will show error "Undefined index: password" and this below vendor\laravel\framework\src\Illuminate\Auth\EloquentUserProvider.php public function validateCredentials(UserInterface $user, array $credentials) { $plain = $credentials['password']; return $this->hasher->check($plain, $user->getAuthPassword()); How can i do that . pls thank you

use Illuminate\Auth\UserTrait;
use Illuminate\Auth\UserInterface;
use Illuminate\Auth\Reminders\RemindableTrait;
use Illuminate\Auth\Reminders\RemindableInterface;

class Users extends Eloquent implements UserInterface, RemindableInterface {

    use UserTrait, RemindableTrait;

    protected $table = 'users';
    protected $hidden = array('email','remember_token');
    $users_data = array(
        'email' => '',
        echo 'SUCCESS';

comments powered by Disqus

Ads cover the costs of maintaining Laravel-tricks