mirror of
https://github.com/i701/sarlink-portal.git
synced 2025-04-20 03:50:20 +00:00
fix: add logging for user data and adjust verification check in signin function
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m48s
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m48s
This commit is contained in:
parent
322f526069
commit
4127035471
@ -47,7 +47,8 @@ export async function signin(previousState: ActionState, formData: FormData) {
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
const userData = (await user.json()) as FilterUserResponse;
|
const userData = (await user.json()) as FilterUserResponse;
|
||||||
if (!userData?.ok) {
|
console.log({ userData });
|
||||||
|
if (!userData?.verified) {
|
||||||
return redirect(`/auth/signup?phone_number=${phoneNumber}`);
|
return redirect(`/auth/signup?phone_number=${phoneNumber}`);
|
||||||
}
|
}
|
||||||
if (!userData.verified) {
|
if (!userData.verified) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user