Focus on input when showing 2FA form in login modal.
This commit is contained in:
parent
62ee332efa
commit
16c6af2ab0
|
@ -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', {
|
||||
|
|
|
@ -4,9 +4,6 @@
|
|||
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<label for='login-second-factor'>{{i18n 'login.second_factor_label'}} </label>
|
||||
</td>
|
||||
<td>
|
||||
{{yield}}
|
||||
</td>
|
||||
|
|
Loading…
Reference in New Issue