Skip to content

Commit

Permalink
don't automatically accept terms
Browse files Browse the repository at this point in the history
  • Loading branch information
hubsmoke committed Nov 9, 2023
1 parent 646cfab commit a93a2c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion desci-server/src/controllers/auth/magic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export const magic = async (req: Request, res: Response, next: NextFunction) =>
res.send({ ok: true, user: { email: user.email, token, termsAccepted } });

if (!termsAccepted) {
saveInteraction(req, ActionType.USER_TERMS_CONSENT, { userId: user.id, email: user.email }, user.id);
// saveInteraction(req, ActionType.USER_TERMS_CONSENT, { userId: user.id, email: user.email }, user.id);
}
saveInteraction(req, ActionType.USER_LOGIN, { userId: user.id }, user.id);
} catch (err) {
Expand Down

0 comments on commit a93a2c0

Please sign in to comment.