Fix #229 (Whitespaces removed

This commit is contained in:
Alex Pica 2014-04-10 06:01:58 +03:00
parent 2c23a57b11
commit 1c1364636d
1 changed files with 26 additions and 23 deletions

View File

@ -280,8 +280,11 @@ User.prototype.verify = function (options, fn) {
+ '://' + '://'
+ options.host + options.host
+ User.http.path + User.http.path
+ User.confirm.http.path; + User.confirm.http.path
+ '?uid='
+ options.user.id
+ '&redirect='
+ options.redirect;
// Email model // Email model
@ -304,7 +307,7 @@ User.prototype.verify = function (options, fn) {
// TODO - support more verification types // TODO - support more verification types
function sendEmail(user) { 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}'; options.text = options.text || 'Please verify your email by opening this link in a web browser:\n\t{href}';