- Can now add a second email address to your account and delete one of your email addresses - Reset password now works - Resetting the password of an account without a password set will set one - Email templates overhauled - Login tokens limited to close previously devastating ($800 database bill) security hole - Login with REST API now works - Once logged in, authentication of API calls with token works - Creatures can now be fetched using the API
36 lines
1.1 KiB
JavaScript
36 lines
1.1 KiB
JavaScript
import { Accounts } from 'meteor/accounts-base'
|
|
import emailTemplate from './emailTemplate.js';
|
|
|
|
Accounts.emailTemplates.from = 'no-reply@dicecloud.com';
|
|
Accounts.emailTemplates.siteName = 'DiceCloud';
|
|
|
|
Accounts.emailTemplates.enrollAccount = {
|
|
subject: () => 'DiceCloud Invite',
|
|
html: (user, url) => emailTemplate({
|
|
heading: 'DiceCloud Invite',
|
|
text: 'You have been invited to DiceCloud, click the button below to begin.',
|
|
buttonText: 'Get Started',
|
|
url: url.replace( '#/', '' ),
|
|
}),
|
|
};
|
|
|
|
Accounts.emailTemplates.resetPassword = {
|
|
subject: () => 'DiceCloud Password Reset',
|
|
html: (user, url) => emailTemplate({
|
|
heading: 'Password Reset',
|
|
text: 'If you did not request this password reset, please ignore this email.',
|
|
buttonText: 'Reset Password',
|
|
url: url.replace( '#/', '' ),
|
|
}),
|
|
};
|
|
|
|
Accounts.emailTemplates.verifyEmail = {
|
|
subject: () => 'DiceCloud Email Verification',
|
|
html: (user, url) => emailTemplate({
|
|
heading: 'DiceCloud Email Verification',
|
|
text: 'Click below to verify your email address',
|
|
buttonText: 'Verify Email',
|
|
url: url.replace( '#/', '' ),
|
|
}),
|
|
};
|