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
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue