this my view file for a signin page
<?php $form = ActiveForm::begin(); ?>
<?= $form->field( $model, 'email' )->textInput( [ 'maxlength' => 200 ], [ 'id' => 'email' ] ) ?>
<?= $form->field( $model, 'password' )->passwordInput( [ 'maxlength' => 200 ] ) ?>
<div class="form-group">
<div class="col-lg-offset-1 col-lg-14">
<?= Html::submitButton( 'Login',
[ 'class' => 'btn btn-danger btn-block btn-lg', 'name' => 'login-button' ] ) ?>
</div>
</div>
<input type='sub' name='submit' value='Reset Password' class="btn btn-link btn-default"'> <?php ActiveForm::end(); ?>
it works perfectly but you have to click on the login button twice. there is no other problem in signing in. i don’t have a clue why i have to click the login button twice.