Fix momentum session expired & sending emails
This commit is contained in:
		@@ -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());
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user