added reputation to /account

v1.18.x
Baris Soner Usakli 12 years ago
parent 3bdbf3c191
commit c906b7419a

@ -18,6 +18,10 @@
<span>Member for </span>
<span id="membersince">{user.joindate}</span>
<br/>
<span>Reputation </span>
<span id="membersince">{user.reputation}</span>
<br/>
<!-- END user -->

@ -39,7 +39,8 @@ var config = require('../config.js'),
RDB.db.hgetall(String(uid), function(err, data){
if(err === null)
{
delete data['password'];
if(data && data['password'])
delete data['password'];
callback(data);
}
else

@ -315,7 +315,10 @@ passport.deserializeUser(function(uid, done) {
return res.redirect('/403');
user.getUserData(req.params.uid, function(data){
res.send(data);
if(data)
res.send(data);
else
res.send("User doesn't exist!");
});
});

Loading…
Cancel
Save