diff options
author | eug-vs <eug-vs@keemail.me> | 2020-08-08 11:23:13 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-08-08 11:23:13 +0300 |
commit | f0a53feb38c5bbec8a94bbf4440a1ce184876013 (patch) | |
tree | 1b2cf3f70db2eaabd5d60734453958112d5d83b8 /src/pages/RegistrationPage | |
parent | f55374d5328f672dbce47e8d452ce17d02ced9f8 (diff) | |
download | which-ui-f0a53feb38c5bbec8a94bbf4440a1ce184876013.tar.gz |
feat: lowercase all username inputs
Diffstat (limited to 'src/pages/RegistrationPage')
-rw-r--r-- | src/pages/RegistrationPage/RegistrationPage.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pages/RegistrationPage/RegistrationPage.tsx b/src/pages/RegistrationPage/RegistrationPage.tsx index 8936c2d..829211d 100644 --- a/src/pages/RegistrationPage/RegistrationPage.tsx +++ b/src/pages/RegistrationPage/RegistrationPage.tsx @@ -43,7 +43,7 @@ const RegistrationPage: React.FC = () => { const history = useHistory(); const handleSubmit = () => { - const username = usernameRef.current?.value; + const username = usernameRef.current?.value?.toLowerCase(); const password = passwordRef.current?.value; const email = emailRef.current?.value; if (username && password) { |