Fix momentum session expired & sending emails
This commit is contained in:
parent
8d84fc8274
commit
f7211e3f87
@ -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} <${email}><br><br>${message}`}}
|
||||
body: `From: ${name} <${email}><br><br>${message}`
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user