diff options
| author | Adam Soltys <[email protected]> | 2015-11-28 23:57:34 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2015-11-30 21:10:59 -0800 |
| commit | 41f8c6831bb91c0b0be1219b1566e59e48673465 (patch) | |
| tree | 39626cf1a8fe7b8d73f750ccaf433bfa8c425d6b /routes/users.js | |
| parent | f2bff842cbe16c18923b905f70ed168096648727 (diff) | |
| download | coinos-server-41f8c6831bb91c0b0be1219b1566e59e48673465.tar.gz coinos-server-41f8c6831bb91c0b0be1219b1566e59e48673465.zip | |
Use bower, grunt and browserify instead of connect-assets
Diffstat (limited to 'routes/users.js')
| -rw-r--r-- | routes/users.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/routes/users.js b/routes/users.js index 736caa6a..9dc9c801 100644 --- a/routes/users.js +++ b/routes/users.js @@ -56,7 +56,7 @@ } if (obj.logo && obj.logo.length > 3) { ext = obj.logo.substr(obj.logo.length - 3); - path = "public/assets/img/logos/" + obj.username + "." + ext; + path = "public/img/logos/" + obj.username + "." + ext; fs.lstat(path, function(err, stats) { if ((ext === 'jpg' || ext === 'png' || ext === 'gif') && (err || !stats.isFile())) { try { @@ -204,7 +204,8 @@ password: hash }, function() { if (req.xhr) { - return res.send({}); + res.send({}); + return res.end(); } else { return res.redirect("/" + req.params.user); } @@ -212,7 +213,8 @@ }); } else { if (req.xhr) { - return res.send({}); + res.send({}); + return res.end(); } else { return res.redirect("/" + req.params.user); } |
