Hi I am using the third field in the login form my login form code look like this
<div class="row">
<?php echo $form->labelEx($model,'username'); ?>
<?php echo $form->textField($model,'username'); ?>
<?php echo $form->error($model,'username'); ?>
</div>
<div class="row">
<?php echo $form->labelEx($model,'password'); ?>
<?php echo $form->passwordField($model,'password'); ?>
<?php echo $form->error($model,'password'); ?>
</div>
<div class="row">
<?php echo $form->labelEx($model,'userrole'); ?>
<?php
$data = Userrole::model()->findAll();
echo $form->dropDownList($model, 'userrole', CHtml::listData($data, 'id', 'userType'));
?>
<?php echo $form->error($model,'userrole'); ?>
</div>
here i should pass the third parameter to authenticate the user so how to pass to the UserIdentity class. UserIdentity class defined only username, password attributes so it will get only the username and password so, how to get the third one