Confirm user logout

This commit is contained in:
2020-01-21 23:45:54 +00:00
parent 72d502d0b7
commit f84171de83
2 changed files with 11 additions and 4 deletions
+2 -1
View File
@@ -14,7 +14,8 @@ export function LoginForm(props) {
const handleSubmit = (e) => {
setLoading(true);
requester('/rest-auth/login/', 'POST', '', input)
const data = { ...input, username: input.username.toLowerCase() };
requester('/rest-auth/login/', 'POST', '', data)
.then(res => {
setError({});
props.setTokenCache(res.key);