Focus on input when showing 2FA form in login modal.

This commit is contained in:
Guo Xiang Tan 2018-03-22 21:45:28 +08:00
parent 62ee332efa
commit 16c6af2ab0
2 changed files with 2 additions and 3 deletions

View File

@ -105,6 +105,8 @@ export default Ember.Controller.extend(ModalFunctionality, {
$("#credentials").hide();
$("#second-factor").show();
$("#second-factor input").focus();
return;
} else if (result.reason === 'not_activated') {
self.send('showNotActivated', {

View File

@ -4,9 +4,6 @@
<table>
<tr>
<td>
<label for='login-second-factor'>{{i18n 'login.second_factor_label'}}&nbsp;</label>
</td>
<td>
{{yield}}
</td>