From 8b71c3022d76084e43d3a1e89214e2227e6bf26a Mon Sep 17 00:00:00 2001 From: Doug Toppin Date: Sun, 30 Mar 2014 08:02:19 -0400 Subject: [PATCH] Update user.js Corrected spacing on confirm ACL, removed extraneous comment on using hex rather than base64 --- lib/models/user.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/models/user.js b/lib/models/user.js index 6e264b74..ba1dc104 100644 --- a/lib/models/user.js +++ b/lib/models/user.js @@ -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) {