diff --git a/app/assets/javascripts/discourse/app/templates/mobile/modal/login.hbs b/app/assets/javascripts/discourse/app/templates/mobile/modal/login.hbs index 3e9721811aa..79aa1fabd10 100644 --- a/app/assets/javascripts/discourse/app/templates/mobile/modal/login.hbs +++ b/app/assets/javascripts/discourse/app/templates/mobile/modal/login.hbs @@ -13,7 +13,7 @@
- {{input value=loginName class=(value-entered loginName)type="email" id="login-account-name" autocorrect="off" autocapitalize="off" disabled=showSecondFactor}} + {{input value=loginName class=(value-entered loginName) type="email" id="login-account-name" autocorrect="off" autocapitalize="off" disabled=showSecondFactor autofocus="autofocus"}} {{#if showLoginWithEmailLink}} diff --git a/app/assets/javascripts/discourse/app/templates/modal/create-account.hbs b/app/assets/javascripts/discourse/app/templates/modal/create-account.hbs index 0b7eb81f01d..20fa75757b4 100644 --- a/app/assets/javascripts/discourse/app/templates/modal/create-account.hbs +++ b/app/assets/javascripts/discourse/app/templates/modal/create-account.hbs @@ -25,7 +25,7 @@ {{#if emailValidated}} {{accountEmail}} {{else}} - {{input type="email" value=accountEmail id="new-account-email" name="email" class=(value-entered accountEmail)}} + {{input type="email" value=accountEmail id="new-account-email" name="email" class=(value-entered accountEmail) autofocus="autofocus"}}