mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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();
|
$("#credentials").hide();
|
||||||
$("#second-factor").show();
|
$("#second-factor").show();
|
||||||
|
$("#second-factor input").focus();
|
||||||
|
|
||||||
return;
|
return;
|
||||||
} else if (result.reason === 'not_activated') {
|
} else if (result.reason === 'not_activated') {
|
||||||
self.send('showNotActivated', {
|
self.send('showNotActivated', {
|
||||||
|
@ -4,9 +4,6 @@
|
|||||||
|
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
|
||||||
<label for='login-second-factor'>{{i18n 'login.second_factor_label'}} </label>
|
|
||||||
</td>
|
|
||||||
<td>
|
<td>
|
||||||
{{yield}}
|
{{yield}}
|
||||||
</td>
|
</td>
|
||||||
|
Loading…
Reference in New Issue
Block a user