Update user.js

Corrected spacing on confirm ACL, removed extraneous comment on using hex rather than base64
This commit is contained in:
Doug Toppin 2014-03-30 08:02:19 -04:00
parent e52dbe2fb5
commit 8b71c3022d
1 changed files with 2 additions and 3 deletions

View File

@ -91,12 +91,12 @@ var options = {
permission: ACL.ALLOW,
property: "updateAttributes"
},
{
{
principalType: ACL.ROLE,
principalId: Role.EVERYONE,
permission: ACL.ALLOW,
property: "confirm"
}
}
],
relations: {
accessTokens: {
@ -287,7 +287,6 @@ User.prototype.verify = function (options, fn) {
if(err) {
fn(err);
} else {
// base64 may not produce a url safe string so we are using hex
user.verificationToken = buf.toString('hex');
user.save(function (err) {
if(err) {