0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-16 06:51:46 +01:00

Tweak copy for sso account details template (#12265)

* Tweak copy for sso account details template
* Update sso footer copyright year
* Add newsfragment

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2022-03-22 10:22:25 +00:00 committed by GitHub
parent d9bc65918e
commit 01211e0c16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 6 deletions

1
changelog.d/12265.misc Normal file
View file

@ -0,0 +1 @@
Tweak copy for default sso account details template to better adhere to mobile app store guidelines.

View file

@ -130,13 +130,13 @@
</head> </head>
<body> <body>
<header> <header>
<h1>Choose your account name</h1> <h1>Create your account</h1>
<p>This is required to create your account on {{ server_name }}, and you can't change this later.</p> <p>This is required. Continue to create your account on {{ server_name }}. You can't change this later.</p>
</header> </header>
<main> <main>
<form method="post" class="form__input" id="form"> <form method="post" class="form__input" id="form">
<div class="username_input" id="username_input"> <div class="username_input" id="username_input">
<label for="field-username">Username</label> <label for="field-username">Username (required)</label>
<div class="prefix">@</div> <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>
<div class="postfix">:{{ server_name }}</div> <div class="postfix">:{{ server_name }}</div>
@ -145,7 +145,7 @@
<input type="submit" value="Continue" class="primary-button"> <input type="submit" value="Continue" class="primary-button">
{% if user_attributes.avatar_url or user_attributes.display_name or user_attributes.emails %} {% if user_attributes.avatar_url or user_attributes.display_name or user_attributes.emails %}
<section class="idp-pick-details"> <section class="idp-pick-details">
<h2>{% if idp.idp_icon %}<img src="{{ idp.idp_icon | mxc_to_http(24, 24) }}"/>{% endif %}Information from {{ idp.idp_name }}</h2> <h2>{% if idp.idp_icon %}<img src="{{ idp.idp_icon | mxc_to_http(24, 24) }}"/>{% endif %}Optional data from {{ idp.idp_name }}</h2>
{% if user_attributes.avatar_url %} {% if user_attributes.avatar_url %}
<label class="idp-detail idp-avatar" for="idp-avatar"> <label class="idp-detail idp-avatar" for="idp-avatar">
<div class="check-row"> <div class="check-row">

View file

@ -62,7 +62,7 @@ function validateUsername(username) {
usernameField.parentElement.classList.remove("invalid"); usernameField.parentElement.classList.remove("invalid");
usernameOutput.classList.remove("error"); usernameOutput.classList.remove("error");
if (!username) { if (!username) {
return reportError("Please provide a username"); return reportError("This is required. Please provide a username");
} }
if (username.length > 255) { if (username.length > 255) {
return reportError("Too long, please choose something shorter"); return reportError("Too long, please choose something shorter");

View file

@ -15,5 +15,5 @@
</g> </g>
</g> </g>
</svg> </svg>
<p>An open network for secure, decentralized communication.<br>© 2021 The Matrix.org Foundation C.I.C.</p> <p>An open network for secure, decentralized communication.<br>© 2022 The Matrix.org Foundation C.I.C.</p>
</footer> </footer>