resolve merge conflict

This commit is contained in:
Nathan Leniz
2015-03-21 17:04:31 +09:00
2 changed files with 9 additions and 6 deletions

View File

@ -19,7 +19,7 @@ function hotRank(timeValue, rank) {
*/ */
var hotness; var hotness;
var z = Math.log(rank) / Math.log(10); var z = Math.log(rank) / Math.log(10);
hotness = z + (timeValue / 45000000); hotness = z + (timeValue / 172800000);
return hotness; return hotness;
} }

View File

@ -94,12 +94,15 @@ exports.getEmailSignup = function(req, res) {
*/ */
exports.postEmailSignup = function(req, res, next) { exports.postEmailSignup = function(req, res, next) {
var errors = req.validationErrors();
if (errors) {
req.flash('errors', errors); req.assert('email', 'valid email required').isEmail();
return res.redirect('/email-signup'); var errors = req.validationErrors();
}
if (errors) {
req.flash('errors', errors);
return res.redirect('/email-signup');
}
var possibleUserData = req.body; var possibleUserData = req.body;