aboutsummaryrefslogtreecommitdiffstats
path: root/routes/users.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2015-11-11 20:19:19 -0800
committerAdam Soltys <[email protected]>2015-11-11 20:19:19 -0800
commita50564c1e992bb17af3d06af4e7ea44da5bc5595 (patch)
treef9ecb53a1f1eee21fc3ec4ab5b48a21e51817afc /routes/users.js
parent270993d700714b9276a7a859ae9664a93183428a (diff)
downloadcoinos-server-a50564c1e992bb17af3d06af4e7ea44da5bc5595.tar.gz
coinos-server-a50564c1e992bb17af3d06af4e7ea44da5bc5595.zip
Move address management to separate wallet page
Diffstat (limited to 'routes/users.js')
-rw-r--r--routes/users.js15
1 files changed, 14 insertions, 1 deletions
diff --git a/routes/users.js b/routes/users.js
index 28b89797..36914152 100644
--- a/routes/users.js
+++ b/routes/users.js
@@ -54,7 +54,7 @@
if (req.query.verified != null) {
options.verified = true;
}
- if (obj.logo.length > 3) {
+ if (obj.logo && obj.logo.length > 3) {
ext = obj.logo.substr(obj.logo.length - 3);
path = "public/assets/img/logos/" + obj.username + "." + ext;
fs.lstat(path, function(err, stats) {
@@ -243,6 +243,19 @@
});
}
});
+ },
+ wallet: function(req, res) {
+ return res.render('users/wallet', {
+ user: req.params.user,
+ layout: 'layout',
+ navigation: true,
+ js: (function() {
+ return global.js;
+ }),
+ css: (function() {
+ return global.css;
+ })
+ });
}
};
};