You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03:00
lowercase username placeholder in Password Login and Registration Form
This commit is contained in:
@@ -357,6 +357,7 @@ export default class PasswordLogin extends React.PureComponent<IProps, IState> {
|
|||||||
key="username_input"
|
key="username_input"
|
||||||
type="text"
|
type="text"
|
||||||
label={_t("Username")}
|
label={_t("Username")}
|
||||||
|
placeholder={_t("Username").toLocaleLowerCase()}
|
||||||
value={this.props.username}
|
value={this.props.username}
|
||||||
onChange={this.onUsernameChanged}
|
onChange={this.onUsernameChanged}
|
||||||
onFocus={this.onUsernameFocus}
|
onFocus={this.onUsernameFocus}
|
||||||
|
|||||||
@@ -522,6 +522,7 @@ export default class RegistrationForm extends React.PureComponent<IProps, IState
|
|||||||
type="text"
|
type="text"
|
||||||
autoFocus={true}
|
autoFocus={true}
|
||||||
label={_t("Username")}
|
label={_t("Username")}
|
||||||
|
placeholder={_t("Username").toLocaleLowerCase()}
|
||||||
value={this.state.username}
|
value={this.state.username}
|
||||||
onChange={this.onUsernameChange}
|
onChange={this.onUsernameChange}
|
||||||
onValidate={this.onUsernameValidate}
|
onValidate={this.onUsernameValidate}
|
||||||
|
|||||||
Reference in New Issue
Block a user