import { OTP_LENGTH, RESEND_COOLDOWN_SEC } from './deleteUtils.js'; // 1. HTML Password Prompt Page export const deleteUserGet = async (req, res) => { const { userId } = req.params; const extUserQuery = new Parse.Query('contracts_Users'); extUserQuery.equalTo('UserId', { __type: 'Pointer', className: '_User', objectId: userId }); const extUser = await extUserQuery.first({ useMasterKey: true }); if (!extUser) return res.status(404).send('User not found.'); const routePath = process?.env?.SERVER_URL?.includes?.('api') ? '/api' : ''; const htmlForm = ` Delete Account

Confirm Account Deletion

This action is irreversible. A verification mail will be sent to your account to your registered email.

`; res.send(htmlForm); };