mirror of
https://github.com/i701/sarlink-portal.git
synced 2025-04-20 03:50:20 +00:00
fix: update signin function to handle user verification response correctly
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 6m14s
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 6m14s
This commit is contained in:
parent
acb0ead6de
commit
00705bcd1a
@ -56,8 +56,8 @@ export async function signin(previousState: ActionState, formData: FormData) {
|
|||||||
);
|
);
|
||||||
const userData = (await user.json()) as FilterUserResponse;
|
const userData = (await user.json()) as FilterUserResponse;
|
||||||
console.log({ userData });
|
console.log({ userData });
|
||||||
if (!userData?.verified) {
|
if (!userData.ok) {
|
||||||
return redirect(`/auth/signup?phone_number=${phoneNumber}`);
|
redirect(`/auth/signup?phone_number=${phoneNumber}`);
|
||||||
}
|
}
|
||||||
if (!userData.verified) {
|
if (!userData.verified) {
|
||||||
return {
|
return {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user