diff options
author | Joram Wilander <jwawilander@gmail.com> | 2015-09-14 14:45:33 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2015-09-14 14:45:33 -0400 |
commit | 312f7d76563856ea877bc930100501aef803d078 (patch) | |
tree | be8388715707578b43ffd0b27c91181ba24e0511 /web/react/components/user_settings_general.jsx | |
parent | 125b7dc71bb3ef00dc038632bf71737e5d25158b (diff) | |
parent | c961c529af28e4e90a0f433dd097e98781a4f112 (diff) | |
download | chat-312f7d76563856ea877bc930100501aef803d078.tar.gz chat-312f7d76563856ea877bc930100501aef803d078.tar.bz2 chat-312f7d76563856ea877bc930100501aef803d078.zip |
Merge pull request #674 from Trozz/PLT-41
PLT-41 Automatically convert uppercase letters to lowercase in username input box.
Diffstat (limited to 'web/react/components/user_settings_general.jsx')
-rw-r--r-- | web/react/components/user_settings_general.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/components/user_settings_general.jsx b/web/react/components/user_settings_general.jsx index 184534a9a..dd0abc8a5 100644 --- a/web/react/components/user_settings_general.jsx +++ b/web/react/components/user_settings_general.jsx @@ -40,7 +40,7 @@ export default class UserSettingsGeneralTab extends React.Component { e.preventDefault(); var user = this.props.user; - var username = this.state.username.trim(); + var username = this.state.username.trim().toLowerCase(); var usernameError = utils.isValidUsername(username); if (usernameError === 'Cannot use a reserved word as a username.') { |