Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 549c556

Browse files
authored
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).
1 parent 935e73e commit 549c556

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.d/13350.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Disable autocorrection and autocapitalisation on the username text field shown during registration when using SSO.

synapse/res/templates/sso_auth_account_details.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ <h1>Create your account</h1>
138138
<div class="username_input" id="username_input">
139139
<label for="field-username">Username (required)</label>
140140
<div class="prefix">@</div>
141-
<input type="text" name="username" id="field-username" value="{{ user_attributes.localpart }}" autofocus>
141+
<input type="text" name="username" id="field-username" value="{{ user_attributes.localpart }}" autofocus autocorrect="off" autocapitalize="none">
142142
<div class="postfix">:{{ server_name }}</div>
143143
</div>
144144
<output for="username_input" id="field-username-output"></output>

0 commit comments

Comments
 (0)