mirror of
https://github.com/i701/sarlink-portal.git
synced 2025-04-19 20:56:52 +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;
|
||||
console.log({ userData });
|
||||
if (!userData?.verified) {
|
||||
return redirect(`/auth/signup?phone_number=${phoneNumber}`);
|
||||
if (!userData.ok) {
|
||||
redirect(`/auth/signup?phone_number=${phoneNumber}`);
|
||||
}
|
||||
if (!userData.verified) {
|
||||
return {
|
||||
|
Loading…
x
Reference in New Issue
Block a user