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

Commit

Permalink
Disable autocorrect and autocaptialisation when entering username for…
Browse files Browse the repository at this point in the history
… 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).
  • Loading branch information
pixlwave authored Jul 26, 2022
1 parent 935e73e commit 549c556
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/13350.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Disable autocorrection and autocapitalisation on the username text field shown during registration when using SSO.
2 changes: 1 addition & 1 deletion synapse/res/templates/sso_auth_account_details.html
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ <h1>Create your account</h1>
<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>
Expand Down

0 comments on commit 549c556

Please sign in to comment.