summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorDoug <6060466+pixlwave@users.noreply.github.com>2022-07-26 09:08:20 +0100
committerGitHub <noreply@github.com>2022-07-26 08:08:20 +0000
commit549c55606acb3414409eb3b940a3457aee8a7a95 (patch)
treeb71249b7c961e3ef0518946cfc27a559637087f1 /synapse
parentUpdate Caddy reverse proxy documentation (#13344) (diff)
downloadsynapse-549c55606acb3414409eb3b940a3457aee8a7a95.tar.xz
Disable autocorrect and autocaptialisation when entering username for SSO registration. (#13350)
When registering a new account via SSO on iOS, the text field becomes pretty annoying as it autocapitalises and autocorrects your input. This PR fixes that (although I have only tested the raw HTML file on the simulator, I'm not sure how to get the complete setup available for testing in the flow).
Diffstat (limited to 'synapse')
-rw-r--r--synapse/res/templates/sso_auth_account_details.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/res/templates/sso_auth_account_details.html b/synapse/res/templates/sso_auth_account_details.html
index 1ba850369a..cf72df0a2a 100644
--- a/synapse/res/templates/sso_auth_account_details.html
+++ b/synapse/res/templates/sso_auth_account_details.html
@@ -138,7 +138,7 @@
         <div class="username_input" id="username_input">
           <label for="field-username">Username (required)</label>
           <div class="prefix">@</div>
-          <input type="text" name="username" id="field-username" value="{{ user_attributes.localpart }}" autofocus>
+          <input type="text" name="username" id="field-username" value="{{ user_attributes.localpart }}" autofocus autocorrect="off" autocapitalize="none">
           <div class="postfix">:{{ server_name }}</div>
         </div>
         <output for="username_input" id="field-username-output"></output>