Fix forced lowercase username in login/registration flows (#9329)

* remove lowercase (proposal)

Lowercase doesn't make sense here (at least in German). I suggest removing it or creating a new translatable string.

* remove lowercase

Lowercase doesn't make sense here (at least in German). I suggest removing it or creating a new translatable string.

* Update screenshot

---------

Co-authored-by: David Baker <dbkr@users.noreply.github.com>
This commit is contained in:
Vri 2024-02-15 13:19:15 +01:00 committed by GitHub
parent 0856c7617d
commit 2c0ee1e114
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 2 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

After

Width:  |  Height:  |  Size: 1.2 MiB

View file

@ -310,7 +310,7 @@ export default class PasswordLogin extends React.PureComponent<IProps, IState> {
key="username_input" key="username_input"
type="text" type="text"
label={_t("common|username")} label={_t("common|username")}
placeholder={_t("common|username").toLocaleLowerCase()} placeholder={_t("common|username")}
value={this.props.username} value={this.props.username}
onChange={this.onUsernameChanged} onChange={this.onUsernameChanged}
onBlur={this.onUsernameBlur} onBlur={this.onUsernameBlur}

View file

@ -530,7 +530,7 @@ export default class RegistrationForm extends React.PureComponent<IProps, IState
type="text" type="text"
autoFocus={true} autoFocus={true}
label={_t("common|username")} label={_t("common|username")}
placeholder={_t("common|username").toLocaleLowerCase()} placeholder={_t("common|username")}
value={this.state.username} value={this.state.username}
onChange={this.onUsernameChange} onChange={this.onUsernameChange}
onValidate={this.onUsernameValidate} onValidate={this.onUsernameValidate}