mirror of
https://github.com/i701/sarlink-portal.git
synced 2025-07-09 22:46:32 +00:00
This commit is contained in:
@ -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 {
|
||||||
|
Reference in New Issue
Block a user