You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-19 05:22:13 +03:00
add comment
This commit is contained in:
committed by
GitHub
parent
62af06104d
commit
579090a4e3
@@ -108,6 +108,7 @@ export default React.createClass({
|
|||||||
_doUsernameCheck: function() {
|
_doUsernameCheck: function() {
|
||||||
// XXX: SPEC-1
|
// XXX: SPEC-1
|
||||||
// Check if username is valid
|
// Check if username is valid
|
||||||
|
// Naive impl copied from https://github.com/matrix-org/matrix-react-sdk/blob/66c3a6d9ca695780eb6b662e242e88323053ff33/src/components/views/login/RegistrationForm.js#L190
|
||||||
if (encodeURIComponent(this.state.username) !== this.state.username) {
|
if (encodeURIComponent(this.state.username) !== this.state.username) {
|
||||||
this.setState({
|
this.setState({
|
||||||
usernameError: _t('User names may only contain letters, numbers, dots, hyphens and underscores.'),
|
usernameError: _t('User names may only contain letters, numbers, dots, hyphens and underscores.'),
|
||||||
|
|||||||
Reference in New Issue
Block a user