mirror of
https://github.com/documenso/documenso.git
synced 2025-11-14 00:32:43 +10:00
chore: encrypt and decrypt email addr
This commit is contained in:
@ -18,7 +18,7 @@ export default function UnverifiedAccount() {
|
||||
const searchParams = useSearchParams();
|
||||
const { toast } = useToast();
|
||||
|
||||
const token = searchParams?.get('t') ?? '';
|
||||
const encryptedEmail = searchParams?.get('t') ?? ''; // TODO: choose a better name instead of t
|
||||
|
||||
const { mutateAsync: sendConfirmationEmail } = trpc.profile.sendConfirmationEmail.useMutation();
|
||||
|
||||
@ -26,9 +26,7 @@ export default function UnverifiedAccount() {
|
||||
try {
|
||||
setIsButtonDisabled(true);
|
||||
|
||||
// TODO: decrypt email and send it
|
||||
|
||||
await sendConfirmationEmail({ email: token ?? '' });
|
||||
await sendConfirmationEmail({ email: encryptedEmail });
|
||||
|
||||
toast({
|
||||
title: 'Success',
|
||||
|
||||
Reference in New Issue
Block a user