make user verified by default.
This commit is contained in:
@@ -65,10 +65,10 @@ async function post(req: NextApiRequest, res: NextApiResponse) {
|
|||||||
type: type,
|
type: type,
|
||||||
focus: "academic",
|
focus: "academic",
|
||||||
status: "paymentDue",
|
status: "paymentDue",
|
||||||
|
|
||||||
desiredLevels: DEFAULT_DESIRED_LEVELS,
|
desiredLevels: DEFAULT_DESIRED_LEVELS,
|
||||||
levels: DEFAULT_LEVELS,
|
levels: DEFAULT_LEVELS,
|
||||||
isFirstLogin: false,
|
isFirstLogin: false,
|
||||||
|
isVerified: true
|
||||||
};
|
};
|
||||||
await setDoc(doc(db, "users", userId), user);
|
await setDoc(doc(db, "users", userId), user);
|
||||||
if (type === "corporate") {
|
if (type === "corporate") {
|
||||||
|
|||||||
Reference in New Issue
Block a user