Skip to content

Commit c789a8f

Browse files
committed
fix: send as application/x-www-form-urlencoded;
1 parent 35dd901 commit c789a8f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/client/LoginForm.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ const LoginForm = ({loginUrl, close, setUser, setLoggedIn, siteKey, isShowRememb
2020
params.set('site', siteKey);
2121
}
2222

23-
const body = new FormData();
23+
// Request will be sent as application/x-www-form-urlencoded
24+
const body = new URLSearchParams();
2425
body.set('username', username);
2526
body.set('password', password);
2627

0 commit comments

Comments
 (0)