authentication - Laravel - Auth:attempt no password -
my user migrate is:
$table->increments('id'); $table->integer('matricula')->unique(); $table->timestamps();
the user log in 'matricula', don't need password in application, model user 'force' use password:
class user extends eloquent implements userinterface, remindableinterface { ... public function getauthpassword() { return $this->password; }
how authenticate without password?
you set password field matricula.
or, write own auth driver. default l4 allows use username or password login, can use 1 or other, or both. in laravel 3 specify field use username (email or username).
regards
Comments
Post a Comment