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