Update & format
This commit is contained in:
1 parent
70924f84a9
commit
914c45dca4
13 files changed
+109
-103
No files matched your search
@@ -19,10 +19,12 @@ export const UsesendOTPPasswordReset = Usesend({
|
||||
const useSend = new UseSend(provider.apiKey, 'https://usesend.gbrown.org');
|
||||
const { error } = await useSend.emails.send({
|
||||
to: [email],
|
||||
from: provider.from ?? 'TechTracker Admin <[email protected]>',
|
||||
from:
|
||||
provider.from ??
|
||||
'TechTracker Admin <[email protected]>',
|
||||
subject: `Reset your password - TechTracker`,
|
||||
text: `Your password reset code is ${token}`,
|
||||
});
|
||||
if (error) throw new Error("Usesend error: " + error.message)
|
||||
if (error) throw new Error('Usesend error: ' + error.message);
|
||||
},
|
||||
});
|
||||
Reference in new issue
Block a user