Fix momentum session expired & sending emails
All checks were successful
Build Website / Build NPM Project (push) Successful in 47s
Build Website / Tag Version (push) Successful in 9s
Build Website / Build & Push Dockerfile (push) Successful in 41s

This commit is contained in:
Zakary Timson 2025-01-05 21:00:21 -05:00
parent 8d84fc8274
commit f7211e3f87
2 changed files with 3 additions and 1 deletions

View File

@ -34,7 +34,7 @@ function send(name: string, email: string, subject: string, message: string) {
return momentum.email.send({
to: ['zaktimson@gmail.com', email],
subject: `ZaksCode: ${subject}`,
body: {template: 'email', data: {body: `From: ${name} &lt;${email}&gt;<br><br>${message}`}}
body: `From: ${name} &lt;${email}&gt;<br><br>${message}`
});
}

View File

@ -29,3 +29,5 @@ export const momentum = new Momentum(environment.apiUrl, {
socket: true
});
momentum.client.inject(true);
momentum.on('auth/session-expired', () => momentum.auth.logout());