title: Laravel: Login with Auth driver, but without password
body: <p>Okay, so to keep it simple I have a <code>users</code> table, and a <code>User</code> model. The table contains a unique identifier <code>com_id</code> (plus other user info), which I'd like to login with, but no password.</p>
  
  <p>I'd like to log the user in, and be able to access their data via the Auth driver: <code>Auth::user()-&gt;email</code> etc, but I'm having some problems logging them in.</p>
  
  <pre><code>if (Auth::attempt(['com_id' =&gt; $com_id]))
  {
     dd("successful login");
  }
  </code></pre>
  
  <p>With this, I get an error regarding the <code>UserInterface</code>, so in my Model I add:</p>
  
  <pre><code>use Illuminate\Auth\UserInterface;
  
  class User extends Eloquent implements UserInterface {
  
      protected $table = 'users';
  
      protected $guarded = array('id');
  
      public function getAuthIdentifier()
      {
          return $this-&gt;steam_community_id;
      }
  
      public function getAuthPassword()
      {
          return $this-&gt;password;
      }
  }
  </code></pre>
  
  <p>But what do I do about the password? I can't remove the function since it's required, and I'm not sure what the <code>getAuthIdentifier</code> is supposed to refer to?</p>
  
  <p>Any help would be nice.</p>
  
  <p>I could handle this through Sessions, but surely this is possible the "normal" way.</p>