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
@@ -413,7 +413,8 @@ export function AdminMemberForm(props) {
if (loading) return;
setLoading(true);
setSuccess(false);
requester('/members/' + id + '/', 'PATCH', token, input)
const data = { ...input, email: input.email.toLowerCase() };
requester('/members/' + id + '/', 'PATCH', token, data)
.then(res => {
setLoading(false);
setSuccess(true);