- 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
11 lines
346 B
JavaScript
11 lines
346 B
JavaScript
import Creatures from '/imports/api/creature/creatures/Creatures.js';
|
|
|
|
export default function writeScope(creatureId, scope){
|
|
// Remove large properties that aren't likely to be accessed
|
|
for (const key in scope){
|
|
delete scope[key].parent;
|
|
delete scope[key].ancestors;
|
|
}
|
|
Creatures.update(creatureId, {$set: {variables: scope}});
|
|
}
|