Lowercase email on submisison

This commit is contained in:
2020-02-14 07:31:22 +00:00
parent 8c630ada1f
commit 07fdd0a9d4
3 changed files with 7 additions and 4 deletions
+2 -1
View File
@@ -126,7 +126,8 @@ export function AccountForm(props) {
const handleSubmit = (e) => {
if (loading) return;
setLoading(true);
requester('/members/' + member.id + '/', 'PATCH', token, input)
const data = { ...input, email: input.email.toLowerCase() };
requester('/members/' + member.id + '/', 'PATCH', token, data)
.then(res => {
setError({});
refreshUser();