Update user.js
Corrected spacing on confirm ACL, removed extraneous comment on using hex rather than base64
This commit is contained in:
parent
e52dbe2fb5
commit
8b71c3022d
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue