Skip to content

Commit 603cae8

Browse files
chore: fix minor issues
1 parent 7ef8b52 commit 603cae8

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

resources/js/base_actions.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@ export const postRawRequest = (endpoint) => (params, headers = {}) => {
9696
// XHR transparently followed any 3xx redirects (res.xhr.responseURL) and the HTTP status.
9797
// Used by flows that complete via a server-side redirect (e.g. 2FA verify) so the SPA can
9898
// navigate the top window to the post-login destination.
99-
export const postRawRequestFull = (endpoint) => (params, headers = {}) => {
99+
export const postRawRequestFull = (endpoint) => (params, headers = {}, queryParams = {}) => {
100100
let url = URI(endpoint);
101101

102-
if (!isObjectEmpty(params))
103-
url = url.query(params);
102+
if (!isObjectEmpty(queryParams))
103+
url = url.query(queryParams);
104104

105105
let key = url.toString();
106106

resources/js/login/actions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const resendVerificationEmail = (email, token) => {
3030
}
3131

3232
// verify / recovery complete login via a server-side redirect, so use the *Full helper to
33-
// recover the final URL for top-window navigation. resend returns plain JSON, no redirect.
33+
// recover the final URL for top-window navigation.
3434
export const verify2FA = (otpValue, method, trustDevice, token) => {
3535
const params = {
3636
otp_value: otpValue,

resources/js/login/components/otp_input_form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const OTPInputForm = ({
3131
<form
3232
method="post"
3333
action={formAction}
34-
onSubmit={onAuthenticate}
34+
onSubmit={(ev) => {ev.preventDefault(); onAuthenticate(ev.target)}}
3535
target="_self"
3636
className={styles.otp_form}
3737
>

resources/js/login/components/password_input_form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ const PasswordInputForm = ({
9191

9292
return (
9393
<form
94-
method="get"
94+
method="post"
9595
action={formAction}
9696
ref={formRef}
9797
onSubmit={(ev) => ev.preventDefault()}

0 commit comments

Comments
 (0)