Fix #229 (Whitespaces removed
This commit is contained in:
parent
2c23a57b11
commit
1c1364636d
|
@ -280,8 +280,11 @@ User.prototype.verify = function (options, fn) {
|
|||
+ '://'
|
||||
+ options.host
|
||||
+ User.http.path
|
||||
+ User.confirm.http.path;
|
||||
|
||||
+ User.confirm.http.path
|
||||
+ '?uid='
|
||||
+ options.user.id
|
||||
+ '&redirect='
|
||||
+ options.redirect;
|
||||
|
||||
|
||||
// Email model
|
||||
|
@ -304,7 +307,7 @@ User.prototype.verify = function (options, fn) {
|
|||
|
||||
// TODO - support more verification types
|
||||
function sendEmail(user) {
|
||||
options.verifyHref += '?token=' + user.verificationToken;
|
||||
options.verifyHref += '&token=' + user.verificationToken;
|
||||
|
||||
options.text = options.text || 'Please verify your email by opening this link in a web browser:\n\t{href}';
|
||||
|
||||
|
|
Loading…
Reference in New Issue