Argument 1 passed to app\components\Usuario::login() must be an instance of app\components\IdentityInterface, instance of app\models\Usuario given, called in C:\xampp1\htdocs\Projetos\Prospecta\models\SalesLoginForm.php on line 72
public function login()
{
if ($this->validate()) {
**return Yii::$app->usuario->login($this->getUser(), $this->lembrarSenha ? 3600*24*30 : 0);**
}
return false;
}