forked from Goutam/lynkeduppro-crm
Merge pull request 'chore: remove debug logging' (#6) from feat/login-methods into goutamnextflow
This commit is contained in:
@@ -85,9 +85,8 @@ export function LoginFlow() {
|
|||||||
replace("identify");
|
replace("identify");
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch(() => {
|
||||||
console.error("[oauth] Google sign-in failed:", e);
|
setFlash("Google sign-in didn't complete. Please try again.");
|
||||||
setFlash(`Google sign-in didn't complete: ${(e as Error)?.message ?? "please try again"}`);
|
|
||||||
replace("identify");
|
replace("identify");
|
||||||
});
|
});
|
||||||
}, [ready, completeOAuthLogin, router]);
|
}, [ready, completeOAuthLogin, router]);
|
||||||
|
|||||||
@@ -97,8 +97,8 @@ export function RegisterFlow() {
|
|||||||
mailingSameAsRegistered: mailingSame,
|
mailingSameAsRegistered: mailingSame,
|
||||||
consentTerms: termsOk, consentPrivacy: privacyOk,
|
consentTerms: termsOk, consentPrivacy: privacyOk,
|
||||||
});
|
});
|
||||||
} catch (e) {
|
} catch {
|
||||||
console.warn("crm.account.register failed (continuing):", e);
|
// Non-fatal: the auth account already exists; the domain profile can be filled in later.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
router.push("/dashboard");
|
router.push("/dashboard");
|
||||||
|
|||||||
Reference in New Issue
Block a user